// Lean compiler output
// Module: Lean.Widget.UserWidget
// Imports: Lean.Elab.Eval Lean.Server.Rpc.RequestHandling
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10;
lean_object* l_Lean_Server_RequestM_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__2;
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl;
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonGetWidgetSourceParams;
static lean_object* l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_builtinModulesRef;
lean_object* l_List_join___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg(lean_object*, uint64_t);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13;
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_eraseWidgetSpec;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__2___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__6;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1;
lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__4;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825_(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23;
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(lean_object*, uint64_t, lean_object*);
lean_object* l_Lean_Server_Snapshots_Snapshot_infoTree(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__6;
extern lean_object* l_Lean_Server_builtinRpcProcedures;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873_(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12;
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(lean_object*, uint64_t, lean_object*);
static lean_object* l_Lean_Widget_addWidgetSpec___closed__4;
LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__13;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__6;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18;
static lean_object* l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11;
lean_object* l_Lean_Json_mkObj(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900_(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_PanelWidgetInstance_range_x3f___default;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25;
lean_object* l_Lean_ConstantInfo_type(lean_object*);
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__3;
extern lean_object* l_Lean_maxRecDepthErrorMessage;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___rarg(lean_object*, lean_object*, lean_object*, uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4;
uint64_t lean_uint64_of_nat(lean_object*);
extern lean_object* l_Lean_Lsp_instToJsonPosition;
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1;
lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___rarg(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__3;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getId(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(lean_object*);
uint8_t l_Lean_RBNode_isRed___rarg(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedWidgetSource;
static lean_object* l_Lean_Widget_getWidgetSource___lambda__5___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6;
static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__38;
uint8_t lean_uint64_dec_lt(uint64_t, uint64_t);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45;
uint8_t lean_usize_dec_eq(size_t, size_t);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__16;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__13;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Name_isAnonymous(lean_object*);
lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__9;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53;
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__3;
lean_object* l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14;
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedUserWidgetDefinition;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__21;
static lean_object* l_Lean_Widget_addWidgetSpec___closed__2;
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Server_RequestM_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_TSepArray_getElems___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__1(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14;
static lean_object* l_Lean_Widget_showWidgetSpec___closed__3;
static lean_object* l_Lean_Widget_getWidgetSource___lambda__6___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_environment_find(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showWidgetSpec___closed__2;
lean_object* l_Lean_Attribute_Builtin_ensureNoArgs(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10;
lean_object* l_Lean_RBNode_balLeft___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_savePanelWidgetInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__15;
LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2(lean_object*, lean_object*);
uint64_t lean_string_hash(lean_object*);
static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance;
lean_object* l_Lean_RBNode_balRight___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9;
static lean_object* l_Lean_Widget_widgetCmd___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__2(lean_object*, lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__1(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676_(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38;
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3;
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2(lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showWidgetSpec___closed__6;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44;
LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52;
LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Expr_hasMVar(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__11;
lean_object* l_Lean_initializing(lean_object*);
lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__1(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15;
lean_object* l_Lean_Json_getStr_x3f(lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Lsp_instFromJsonPosition;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2;
LEAN_EXPORT lean_object* l_Lean_Widget_instToModuleModule;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__7;
size_t lean_usize_of_nat(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24;
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8;
static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1;
LEAN_EXPORT uint8_t l_Lean_Widget_getWidgetSource___lambda__2(lean_object*, uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(lean_object*, uint64_t);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_task_pure(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*);
lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786____spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object*);
lean_object* l_Lean_RBNode_appendTrees___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26;
LEAN_EXPORT lean_object* l_Lean_Widget_addWidgetSpec;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4;
lean_object* lean_st_ref_take(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997_(lean_object*);
lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1927____spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7;
lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__17;
lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23;
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__3;
LEAN_EXPORT lean_object* l_Lean_Widget_widgetCmd;
lean_object* l_Lean_declareBuiltin(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg(lean_object*, lean_object*);
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10;
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6;
lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2;
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1;
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_panelWidgetsExt;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1(lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9;
lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonUserWidgetDefinition;
LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12;
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2;
lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_getWidgetSource___lambda__6___closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3;
lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19;
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10;
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2;
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3;
static lean_object* l_Lean_Widget_getWidgets___lambda__4___closed__1;
lean_object* l_Lean_Server_Snapshots_Snapshot_env(lean_object*);
lean_object* lean_uint64_to_nat(uint64_t);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__5;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1;
lean_object* l_Lean_Server_wrapRpcProcedure___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1;
lean_object* l_Lean_quoteNameMk(lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodableInteractiveTermGoal_dec____x40_Lean_Widget_InteractiveGoal___hyg_2335____spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1(lean_object*, uint64_t, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41;
lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152_(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37;
LEAN_EXPORT lean_object* l_Lean_Widget_WidgetInstance_ofHash(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14;
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_enc____x40_Lean_Widget_UserWidget___hyg_4152_(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_list_to_array(lean_object*, lean_object*);
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*);
lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_addWidgetSpec___closed__7;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2;
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetInstanceSpec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232_(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__14;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonWidgetSource;
static lean_object* l_Lean_Widget_addBuiltinModule___closed__1;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16;
static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Json_opt___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_558____spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showWidgetSpec___closed__4;
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_warningAsError;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__13;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__5;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54;
uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetCmd___closed__3;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571____boxed(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2;
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Widget_evalPanelWidgets___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20;
lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2;
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4;
lean_object* l_Lean_bignumFromJson_x3f(lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9;
static lean_object* l_Lean_Widget_addWidgetSpec___closed__1;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__9;
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__12;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31;
lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse;
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2;
static lean_object* l_Lean_Widget_addWidgetSpec___closed__6;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_5014_(lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__4;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(lean_object*, uint64_t);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49;
lean_object* l_String_Range_toLspRange(lean_object*, lean_object*);
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
lean_object* l_Lean_MessageData_ofExpr(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__4;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_Module_javascriptHash___default___boxed(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped(lean_object*);
lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_738_(lean_object*);
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6;
lean_object* l_Lean_ScopedEnvExtension_add___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12;
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Widget_evalPanelWidgets___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_IO_AsyncList_waitUntil___rarg(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5;
lean_object* l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13;
static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(size_t, size_t, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__16;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__12;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
lean_object* l_List_getLast_x3f___rarg(lean_object*);
lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__10;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__24;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__2;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__7;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket;
LEAN_EXPORT lean_object* l_Lean_Widget_savePanelWidgetInfo(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3;
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(lean_object*, uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1;
lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instToModuleUserWidgetDefinition___boxed(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3;
static lean_object* l_Lean_Widget_widgetCmd___closed__4;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__8;
lean_object* l_Lean_Server_instRpcEncodableOfFromJsonOfToJson___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6;
lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_406_(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4;
LEAN_EXPORT uint64_t l_Lean_Widget_Module_javascriptHash___default(lean_object*);
static lean_object* l_Lean_Widget_showWidgetSpec___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031_(lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1;
static lean_object* l_Lean_Widget_widgetCmd___closed__1;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__10;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34;
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_3830_(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_environment_main_module(lean_object*);
lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_realizeGlobalConstNoOverloadWithInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_90_(lean_object*);
static lean_object* l_Lean_Widget_addWidgetSpec___closed__5;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12;
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(lean_object*, uint64_t, lean_object*);
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__12;
static lean_object* l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1;
lean_object* l_id___rarg___boxed(lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____lambda__1(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__7;
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__11;
lean_object* l_Lean_indentExpr(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2;
LEAN_EXPORT lean_object* l_Lean_Widget_WidgetInstance_ofHash___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20;
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___lambda__1(uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonGetWidgetSourceParams;
LEAN_EXPORT uint8_t l_Lean_Widget_getWidgets___lambda__1(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___rarg(lean_object*, lean_object*, lean_object*, uint64_t, lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1;
uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
lean_object* l_Lean_Server_RequestM_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13;
LEAN_EXPORT lean_object* l_Lean_Widget_showPanelWidgetsCmd;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185_(lean_object*);
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1(lean_object*, lean_object*);
lean_object* l_String_toName(lean_object*);
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__18;
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInstanceSpec;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__9;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9;
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonWidgetSource;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6;
lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveHypothesisBundle_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5____spec__1(lean_object*, lean_object*);
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_PanelWidgetInstance_name_x3f___default;
lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpec___closed__8;
static lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7;
uint8_t l_Lean_RBNode_isBlack___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_addWidgetSpec___closed__3;
LEAN_EXPORT lean_object* l_Lean_Widget_instToModuleUserWidgetDefinition(lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33;
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1661____spec__2(size_t, size_t, lean_object*);
lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__2;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket;
lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7;
lean_object* l_Lean_Elab_InfoTree_deepestNodes___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927_(lean_object*);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instToModuleModule___closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900_(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_showWidgetSpec;
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4;
lean_object* l_Lean_bignumToJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50;
lean_object* l_List_reverse___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3;
uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_162_(uint8_t, uint8_t);
lean_object* l___private_Lean_ToExpr_0__Lean_Name_toExprAux(lean_object*);
uint8_t lean_uint64_dec_eq(uint64_t, uint64_t);
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_intercalate(lean_object*, lean_object*);
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_evalPanelWidgets___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1;
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__27;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11;
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_addBuiltinModule(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Server_registerBuiltinRpcProcedure___spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___lambda__1___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8;
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1(uint64_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(lean_object*, uint64_t);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15;
lean_object* lean_array_uget(lean_object*, size_t);
LEAN_EXPORT lean_object* l_Lean_Widget_widgetModuleAttrImpl;
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__6;
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416_(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_moduleRegistry;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1;
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8;
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1606____spec__2(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1;
lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*);
static lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
lean_object* l_List_redLength___rarg(lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2;
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_showPanelWidgetsCmd___closed__10;
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__14;
LEAN_EXPORT lean_object* l_Lean_Widget_evalPanelWidgets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35;
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(lean_object*);
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357_(lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6;
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27;
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetCmd___closed__6;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26;
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__1;
static lean_object* l_Lean_Widget_instFromJsonWidgetSource___closed__1;
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3;
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
static lean_object* l_Lean_Widget_showWidgetSpec___closed__1;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_instToJsonWidgetSource___closed__1;
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(lean_object*, uint64_t, lean_object*);
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3;
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__1;
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5;
lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6;
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(size_t, size_t, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7;
lean_object* l_Lean_Json_pretty(lean_object*, lean_object*);
lean_object* l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628_(lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__11;
lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_fromJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_345____spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__33;
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_toSubstring_x27(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3;
lean_object* l_Lean_MessageData_ofName(lean_object*);
lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_widgetInstanceSpec___closed__5;
lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcConnected____x40_Lean_Data_Lsp_Extra___hyg_1794____spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Widget_eraseWidgetSpec___closed__4;
LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonUserWidgetDefinition;
lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*);
static lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2;
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1;
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1(lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_StateT_pure___at_Lean_Server_instRpcEncodableStateMRpcObjectStore___spec__1___rarg(lean_object*, lean_object*);
lean_object* l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1;
static lean_object* l_Lean_Widget_widgetCmd___closed__2;
static lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2;
static lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1;
static lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4;
LEAN_EXPORT uint64_t l_Lean_Widget_Module_javascriptHash___default(lean_object* x_1) {
_start:
{
uint64_t x_2; 
x_2 = lean_string_hash(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Module_javascriptHash___default___boxed(lean_object* x_1) {
_start:
{
uint64_t x_2; lean_object* x_3; 
x_2 = l_Lean_Widget_Module_javascriptHash___default(x_1);
lean_dec(x_1);
x_3 = lean_box_uint64(x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Widget", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Module", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; lean_object* x_9; 
x_7 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4;
x_8 = 1;
x_9 = l_Lean_Meta_evalExpr_x27___rarg(x_7, x_1, x_8, x_2, x_3, x_4, x_5, x_6);
return x_9;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("WidgetInstance", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; lean_object* x_9; 
x_7 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2;
x_8 = 1;
x_9 = l_Lean_Meta_evalExpr_x27___rarg(x_7, x_1, x_8, x_2, x_3, x_4, x_5, x_6);
return x_9;
}
}
static lean_object* _init_l_Lean_Widget_instToModuleModule___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instToModuleModule() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instToModuleModule___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_90_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_box(0);
x_3 = lean_st_mk_ref(x_2, x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
lean_inc(x_5);
lean_dec(x_3);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint64(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint64(x_11);
x_15 = lean_uint64_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint64_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint64(x_11);
x_17 = lean_uint64_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint64(x_25);
x_29 = lean_uint64_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint64_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint64(x_25);
x_31 = lean_uint64_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint64(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint64(x_43);
x_47 = lean_uint64_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint64_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint64(x_43);
x_49 = lean_uint64_dec_eq(x_2, x_48);
if (x_49 == 0)
{
lean_object* x_50; uint8_t x_51; 
x_50 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_45, x_2, x_3);
x_51 = lean_ctor_get_uint8(x_50, sizeof(void*)*4);
if (x_51 == 0)
{
lean_object* x_52; 
x_52 = lean_ctor_get(x_50, 0);
lean_inc(x_52);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; 
x_53 = lean_ctor_get(x_50, 3);
lean_inc(x_53);
if (lean_obj_tag(x_53) == 0)
{
uint8_t x_54; 
x_54 = !lean_is_exclusive(x_50);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_55 = lean_ctor_get(x_50, 3);
lean_dec(x_55);
x_56 = lean_ctor_get(x_50, 0);
lean_dec(x_56);
lean_ctor_set(x_50, 0, x_53);
x_57 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_57);
return x_1;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; 
x_58 = lean_ctor_get(x_50, 1);
x_59 = lean_ctor_get(x_50, 2);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_50);
x_60 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_60, 0, x_53);
lean_ctor_set(x_60, 1, x_58);
lean_ctor_set(x_60, 2, x_59);
lean_ctor_set(x_60, 3, x_53);
lean_ctor_set_uint8(x_60, sizeof(void*)*4, x_51);
x_61 = 1;
lean_ctor_set(x_1, 3, x_60);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_61);
return x_1;
}
}
else
{
uint8_t x_62; 
x_62 = lean_ctor_get_uint8(x_53, sizeof(void*)*4);
if (x_62 == 0)
{
uint8_t x_63; 
x_63 = !lean_is_exclusive(x_50);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_64 = lean_ctor_get(x_50, 1);
x_65 = lean_ctor_get(x_50, 2);
x_66 = lean_ctor_get(x_50, 3);
lean_dec(x_66);
x_67 = lean_ctor_get(x_50, 0);
lean_dec(x_67);
x_68 = !lean_is_exclusive(x_53);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; 
x_69 = lean_ctor_get(x_53, 0);
x_70 = lean_ctor_get(x_53, 1);
x_71 = lean_ctor_get(x_53, 2);
x_72 = lean_ctor_get(x_53, 3);
x_73 = 1;
lean_ctor_set(x_53, 3, x_52);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_73);
lean_ctor_set(x_50, 3, x_72);
lean_ctor_set(x_50, 2, x_71);
lean_ctor_set(x_50, 1, x_70);
lean_ctor_set(x_50, 0, x_69);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_73);
x_74 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_74);
return x_1;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; uint8_t x_81; 
x_75 = lean_ctor_get(x_53, 0);
x_76 = lean_ctor_get(x_53, 1);
x_77 = lean_ctor_get(x_53, 2);
x_78 = lean_ctor_get(x_53, 3);
lean_inc(x_78);
lean_inc(x_77);
lean_inc(x_76);
lean_inc(x_75);
lean_dec(x_53);
x_79 = 1;
x_80 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_80, 0, x_42);
lean_ctor_set(x_80, 1, x_43);
lean_ctor_set(x_80, 2, x_44);
lean_ctor_set(x_80, 3, x_52);
lean_ctor_set_uint8(x_80, sizeof(void*)*4, x_79);
lean_ctor_set(x_50, 3, x_78);
lean_ctor_set(x_50, 2, x_77);
lean_ctor_set(x_50, 1, x_76);
lean_ctor_set(x_50, 0, x_75);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_79);
x_81 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_80);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_81);
return x_1;
}
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; 
x_82 = lean_ctor_get(x_50, 1);
x_83 = lean_ctor_get(x_50, 2);
lean_inc(x_83);
lean_inc(x_82);
lean_dec(x_50);
x_84 = lean_ctor_get(x_53, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_53, 1);
lean_inc(x_85);
x_86 = lean_ctor_get(x_53, 2);
lean_inc(x_86);
x_87 = lean_ctor_get(x_53, 3);
lean_inc(x_87);
if (lean_is_exclusive(x_53)) {
 lean_ctor_release(x_53, 0);
 lean_ctor_release(x_53, 1);
 lean_ctor_release(x_53, 2);
 lean_ctor_release(x_53, 3);
 x_88 = x_53;
} else {
 lean_dec_ref(x_53);
 x_88 = lean_box(0);
}
x_89 = 1;
if (lean_is_scalar(x_88)) {
 x_90 = lean_alloc_ctor(1, 4, 1);
} else {
 x_90 = x_88;
}
lean_ctor_set(x_90, 0, x_42);
lean_ctor_set(x_90, 1, x_43);
lean_ctor_set(x_90, 2, x_44);
lean_ctor_set(x_90, 3, x_52);
lean_ctor_set_uint8(x_90, sizeof(void*)*4, x_89);
x_91 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_91, 0, x_84);
lean_ctor_set(x_91, 1, x_85);
lean_ctor_set(x_91, 2, x_86);
lean_ctor_set(x_91, 3, x_87);
lean_ctor_set_uint8(x_91, sizeof(void*)*4, x_89);
x_92 = 0;
lean_ctor_set(x_1, 3, x_91);
lean_ctor_set(x_1, 2, x_83);
lean_ctor_set(x_1, 1, x_82);
lean_ctor_set(x_1, 0, x_90);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_92);
return x_1;
}
}
else
{
uint8_t x_93; 
lean_free_object(x_1);
x_93 = !lean_is_exclusive(x_53);
if (x_93 == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; 
x_94 = lean_ctor_get(x_53, 3);
lean_dec(x_94);
x_95 = lean_ctor_get(x_53, 2);
lean_dec(x_95);
x_96 = lean_ctor_get(x_53, 1);
lean_dec(x_96);
x_97 = lean_ctor_get(x_53, 0);
lean_dec(x_97);
x_98 = 1;
lean_ctor_set(x_53, 3, x_50);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_98);
return x_53;
}
else
{
uint8_t x_99; lean_object* x_100; 
lean_dec(x_53);
x_99 = 1;
x_100 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_100, 0, x_42);
lean_ctor_set(x_100, 1, x_43);
lean_ctor_set(x_100, 2, x_44);
lean_ctor_set(x_100, 3, x_50);
lean_ctor_set_uint8(x_100, sizeof(void*)*4, x_99);
return x_100;
}
}
}
}
else
{
uint8_t x_101; 
x_101 = lean_ctor_get_uint8(x_52, sizeof(void*)*4);
if (x_101 == 0)
{
uint8_t x_102; 
x_102 = !lean_is_exclusive(x_50);
if (x_102 == 0)
{
lean_object* x_103; uint8_t x_104; 
x_103 = lean_ctor_get(x_50, 0);
lean_dec(x_103);
x_104 = !lean_is_exclusive(x_52);
if (x_104 == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; 
x_105 = lean_ctor_get(x_52, 0);
x_106 = lean_ctor_get(x_52, 1);
x_107 = lean_ctor_get(x_52, 2);
x_108 = lean_ctor_get(x_52, 3);
x_109 = 1;
lean_ctor_set(x_52, 3, x_105);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_109);
lean_ctor_set(x_50, 0, x_108);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_109);
x_110 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_107);
lean_ctor_set(x_1, 1, x_106);
lean_ctor_set(x_1, 0, x_52);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110);
return x_1;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; uint8_t x_117; 
x_111 = lean_ctor_get(x_52, 0);
x_112 = lean_ctor_get(x_52, 1);
x_113 = lean_ctor_get(x_52, 2);
x_114 = lean_ctor_get(x_52, 3);
lean_inc(x_114);
lean_inc(x_113);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_52);
x_115 = 1;
x_116 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_116, 0, x_42);
lean_ctor_set(x_116, 1, x_43);
lean_ctor_set(x_116, 2, x_44);
lean_ctor_set(x_116, 3, x_111);
lean_ctor_set_uint8(x_116, sizeof(void*)*4, x_115);
lean_ctor_set(x_50, 0, x_114);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_115);
x_117 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_116);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_117);
return x_1;
}
}
else
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; 
x_118 = lean_ctor_get(x_50, 1);
x_119 = lean_ctor_get(x_50, 2);
x_120 = lean_ctor_get(x_50, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_dec(x_50);
x_121 = lean_ctor_get(x_52, 0);
lean_inc(x_121);
x_122 = lean_ctor_get(x_52, 1);
lean_inc(x_122);
x_123 = lean_ctor_get(x_52, 2);
lean_inc(x_123);
x_124 = lean_ctor_get(x_52, 3);
lean_inc(x_124);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_125 = x_52;
} else {
 lean_dec_ref(x_52);
 x_125 = lean_box(0);
}
x_126 = 1;
if (lean_is_scalar(x_125)) {
 x_127 = lean_alloc_ctor(1, 4, 1);
} else {
 x_127 = x_125;
}
lean_ctor_set(x_127, 0, x_42);
lean_ctor_set(x_127, 1, x_43);
lean_ctor_set(x_127, 2, x_44);
lean_ctor_set(x_127, 3, x_121);
lean_ctor_set_uint8(x_127, sizeof(void*)*4, x_126);
x_128 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_128, 0, x_124);
lean_ctor_set(x_128, 1, x_118);
lean_ctor_set(x_128, 2, x_119);
lean_ctor_set(x_128, 3, x_120);
lean_ctor_set_uint8(x_128, sizeof(void*)*4, x_126);
x_129 = 0;
lean_ctor_set(x_1, 3, x_128);
lean_ctor_set(x_1, 2, x_123);
lean_ctor_set(x_1, 1, x_122);
lean_ctor_set(x_1, 0, x_127);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_129);
return x_1;
}
}
else
{
lean_object* x_130; 
x_130 = lean_ctor_get(x_50, 3);
lean_inc(x_130);
if (lean_obj_tag(x_130) == 0)
{
uint8_t x_131; 
lean_free_object(x_1);
x_131 = !lean_is_exclusive(x_52);
if (x_131 == 0)
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_132 = lean_ctor_get(x_52, 3);
lean_dec(x_132);
x_133 = lean_ctor_get(x_52, 2);
lean_dec(x_133);
x_134 = lean_ctor_get(x_52, 1);
lean_dec(x_134);
x_135 = lean_ctor_get(x_52, 0);
lean_dec(x_135);
x_136 = 1;
lean_ctor_set(x_52, 3, x_50);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_136);
return x_52;
}
else
{
uint8_t x_137; lean_object* x_138; 
lean_dec(x_52);
x_137 = 1;
x_138 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_138, 0, x_42);
lean_ctor_set(x_138, 1, x_43);
lean_ctor_set(x_138, 2, x_44);
lean_ctor_set(x_138, 3, x_50);
lean_ctor_set_uint8(x_138, sizeof(void*)*4, x_137);
return x_138;
}
}
else
{
uint8_t x_139; 
x_139 = lean_ctor_get_uint8(x_130, sizeof(void*)*4);
if (x_139 == 0)
{
uint8_t x_140; 
lean_free_object(x_1);
x_140 = !lean_is_exclusive(x_50);
if (x_140 == 0)
{
lean_object* x_141; lean_object* x_142; uint8_t x_143; 
x_141 = lean_ctor_get(x_50, 3);
lean_dec(x_141);
x_142 = lean_ctor_get(x_50, 0);
lean_dec(x_142);
x_143 = !lean_is_exclusive(x_130);
if (x_143 == 0)
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; uint8_t x_149; 
x_144 = lean_ctor_get(x_130, 0);
x_145 = lean_ctor_get(x_130, 1);
x_146 = lean_ctor_get(x_130, 2);
x_147 = lean_ctor_get(x_130, 3);
x_148 = 1;
lean_inc(x_52);
lean_ctor_set(x_130, 3, x_52);
lean_ctor_set(x_130, 2, x_44);
lean_ctor_set(x_130, 1, x_43);
lean_ctor_set(x_130, 0, x_42);
x_149 = !lean_is_exclusive(x_52);
if (x_149 == 0)
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; 
x_150 = lean_ctor_get(x_52, 3);
lean_dec(x_150);
x_151 = lean_ctor_get(x_52, 2);
lean_dec(x_151);
x_152 = lean_ctor_get(x_52, 1);
lean_dec(x_152);
x_153 = lean_ctor_get(x_52, 0);
lean_dec(x_153);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
lean_ctor_set(x_52, 3, x_147);
lean_ctor_set(x_52, 2, x_146);
lean_ctor_set(x_52, 1, x_145);
lean_ctor_set(x_52, 0, x_144);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_148);
x_154 = 0;
lean_ctor_set(x_50, 3, x_52);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_154);
return x_50;
}
else
{
lean_object* x_155; uint8_t x_156; 
lean_dec(x_52);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
x_155 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_155, 0, x_144);
lean_ctor_set(x_155, 1, x_145);
lean_ctor_set(x_155, 2, x_146);
lean_ctor_set(x_155, 3, x_147);
lean_ctor_set_uint8(x_155, sizeof(void*)*4, x_148);
x_156 = 0;
lean_ctor_set(x_50, 3, x_155);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_156);
return x_50;
}
}
else
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; 
x_157 = lean_ctor_get(x_130, 0);
x_158 = lean_ctor_get(x_130, 1);
x_159 = lean_ctor_get(x_130, 2);
x_160 = lean_ctor_get(x_130, 3);
lean_inc(x_160);
lean_inc(x_159);
lean_inc(x_158);
lean_inc(x_157);
lean_dec(x_130);
x_161 = 1;
lean_inc(x_52);
x_162 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_162, 0, x_42);
lean_ctor_set(x_162, 1, x_43);
lean_ctor_set(x_162, 2, x_44);
lean_ctor_set(x_162, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_163 = x_52;
} else {
 lean_dec_ref(x_52);
 x_163 = lean_box(0);
}
lean_ctor_set_uint8(x_162, sizeof(void*)*4, x_161);
if (lean_is_scalar(x_163)) {
 x_164 = lean_alloc_ctor(1, 4, 1);
} else {
 x_164 = x_163;
}
lean_ctor_set(x_164, 0, x_157);
lean_ctor_set(x_164, 1, x_158);
lean_ctor_set(x_164, 2, x_159);
lean_ctor_set(x_164, 3, x_160);
lean_ctor_set_uint8(x_164, sizeof(void*)*4, x_161);
x_165 = 0;
lean_ctor_set(x_50, 3, x_164);
lean_ctor_set(x_50, 0, x_162);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_165);
return x_50;
}
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; 
x_166 = lean_ctor_get(x_50, 1);
x_167 = lean_ctor_get(x_50, 2);
lean_inc(x_167);
lean_inc(x_166);
lean_dec(x_50);
x_168 = lean_ctor_get(x_130, 0);
lean_inc(x_168);
x_169 = lean_ctor_get(x_130, 1);
lean_inc(x_169);
x_170 = lean_ctor_get(x_130, 2);
lean_inc(x_170);
x_171 = lean_ctor_get(x_130, 3);
lean_inc(x_171);
if (lean_is_exclusive(x_130)) {
 lean_ctor_release(x_130, 0);
 lean_ctor_release(x_130, 1);
 lean_ctor_release(x_130, 2);
 lean_ctor_release(x_130, 3);
 x_172 = x_130;
} else {
 lean_dec_ref(x_130);
 x_172 = lean_box(0);
}
x_173 = 1;
lean_inc(x_52);
if (lean_is_scalar(x_172)) {
 x_174 = lean_alloc_ctor(1, 4, 1);
} else {
 x_174 = x_172;
}
lean_ctor_set(x_174, 0, x_42);
lean_ctor_set(x_174, 1, x_43);
lean_ctor_set(x_174, 2, x_44);
lean_ctor_set(x_174, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_175 = x_52;
} else {
 lean_dec_ref(x_52);
 x_175 = lean_box(0);
}
lean_ctor_set_uint8(x_174, sizeof(void*)*4, x_173);
if (lean_is_scalar(x_175)) {
 x_176 = lean_alloc_ctor(1, 4, 1);
} else {
 x_176 = x_175;
}
lean_ctor_set(x_176, 0, x_168);
lean_ctor_set(x_176, 1, x_169);
lean_ctor_set(x_176, 2, x_170);
lean_ctor_set(x_176, 3, x_171);
lean_ctor_set_uint8(x_176, sizeof(void*)*4, x_173);
x_177 = 0;
x_178 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_178, 0, x_174);
lean_ctor_set(x_178, 1, x_166);
lean_ctor_set(x_178, 2, x_167);
lean_ctor_set(x_178, 3, x_176);
lean_ctor_set_uint8(x_178, sizeof(void*)*4, x_177);
return x_178;
}
}
else
{
uint8_t x_179; 
x_179 = !lean_is_exclusive(x_50);
if (x_179 == 0)
{
lean_object* x_180; lean_object* x_181; uint8_t x_182; 
x_180 = lean_ctor_get(x_50, 3);
lean_dec(x_180);
x_181 = lean_ctor_get(x_50, 0);
lean_dec(x_181);
x_182 = !lean_is_exclusive(x_52);
if (x_182 == 0)
{
uint8_t x_183; 
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_139);
x_183 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_183);
return x_1;
}
else
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; 
x_184 = lean_ctor_get(x_52, 0);
x_185 = lean_ctor_get(x_52, 1);
x_186 = lean_ctor_get(x_52, 2);
x_187 = lean_ctor_get(x_52, 3);
lean_inc(x_187);
lean_inc(x_186);
lean_inc(x_185);
lean_inc(x_184);
lean_dec(x_52);
x_188 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_185);
lean_ctor_set(x_188, 2, x_186);
lean_ctor_set(x_188, 3, x_187);
lean_ctor_set_uint8(x_188, sizeof(void*)*4, x_139);
lean_ctor_set(x_50, 0, x_188);
x_189 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_189);
return x_1;
}
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; 
x_190 = lean_ctor_get(x_50, 1);
x_191 = lean_ctor_get(x_50, 2);
lean_inc(x_191);
lean_inc(x_190);
lean_dec(x_50);
x_192 = lean_ctor_get(x_52, 0);
lean_inc(x_192);
x_193 = lean_ctor_get(x_52, 1);
lean_inc(x_193);
x_194 = lean_ctor_get(x_52, 2);
lean_inc(x_194);
x_195 = lean_ctor_get(x_52, 3);
lean_inc(x_195);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_196 = x_52;
} else {
 lean_dec_ref(x_52);
 x_196 = lean_box(0);
}
if (lean_is_scalar(x_196)) {
 x_197 = lean_alloc_ctor(1, 4, 1);
} else {
 x_197 = x_196;
}
lean_ctor_set(x_197, 0, x_192);
lean_ctor_set(x_197, 1, x_193);
lean_ctor_set(x_197, 2, x_194);
lean_ctor_set(x_197, 3, x_195);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_139);
x_198 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_198, 0, x_197);
lean_ctor_set(x_198, 1, x_190);
lean_ctor_set(x_198, 2, x_191);
lean_ctor_set(x_198, 3, x_130);
lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_51);
x_199 = 1;
lean_ctor_set(x_1, 3, x_198);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_200; 
x_200 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200);
return x_1;
}
}
else
{
uint8_t x_201; lean_object* x_202; 
lean_dec(x_44);
lean_dec(x_43);
x_201 = 1;
x_202 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_202);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_201);
return x_1;
}
}
else
{
lean_object* x_203; uint8_t x_204; 
x_203 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_42, x_2, x_3);
x_204 = lean_ctor_get_uint8(x_203, sizeof(void*)*4);
if (x_204 == 0)
{
lean_object* x_205; 
x_205 = lean_ctor_get(x_203, 0);
lean_inc(x_205);
if (lean_obj_tag(x_205) == 0)
{
lean_object* x_206; 
x_206 = lean_ctor_get(x_203, 3);
lean_inc(x_206);
if (lean_obj_tag(x_206) == 0)
{
uint8_t x_207; 
x_207 = !lean_is_exclusive(x_203);
if (x_207 == 0)
{
lean_object* x_208; lean_object* x_209; uint8_t x_210; 
x_208 = lean_ctor_get(x_203, 3);
lean_dec(x_208);
x_209 = lean_ctor_get(x_203, 0);
lean_dec(x_209);
lean_ctor_set(x_203, 0, x_206);
x_210 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; 
x_211 = lean_ctor_get(x_203, 1);
x_212 = lean_ctor_get(x_203, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_203);
x_213 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_213, 0, x_206);
lean_ctor_set(x_213, 1, x_211);
lean_ctor_set(x_213, 2, x_212);
lean_ctor_set(x_213, 3, x_206);
lean_ctor_set_uint8(x_213, sizeof(void*)*4, x_204);
x_214 = 1;
lean_ctor_set(x_1, 0, x_213);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_214);
return x_1;
}
}
else
{
uint8_t x_215; 
x_215 = lean_ctor_get_uint8(x_206, sizeof(void*)*4);
if (x_215 == 0)
{
uint8_t x_216; 
x_216 = !lean_is_exclusive(x_203);
if (x_216 == 0)
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; 
x_217 = lean_ctor_get(x_203, 1);
x_218 = lean_ctor_get(x_203, 2);
x_219 = lean_ctor_get(x_203, 3);
lean_dec(x_219);
x_220 = lean_ctor_get(x_203, 0);
lean_dec(x_220);
x_221 = !lean_is_exclusive(x_206);
if (x_221 == 0)
{
lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; uint8_t x_227; 
x_222 = lean_ctor_get(x_206, 0);
x_223 = lean_ctor_get(x_206, 1);
x_224 = lean_ctor_get(x_206, 2);
x_225 = lean_ctor_get(x_206, 3);
x_226 = 1;
lean_ctor_set(x_206, 3, x_222);
lean_ctor_set(x_206, 2, x_218);
lean_ctor_set(x_206, 1, x_217);
lean_ctor_set(x_206, 0, x_205);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_226);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_225);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_226);
x_227 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_224);
lean_ctor_set(x_1, 1, x_223);
lean_ctor_set(x_1, 0, x_206);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_227);
return x_1;
}
else
{
lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; uint8_t x_234; 
x_228 = lean_ctor_get(x_206, 0);
x_229 = lean_ctor_get(x_206, 1);
x_230 = lean_ctor_get(x_206, 2);
x_231 = lean_ctor_get(x_206, 3);
lean_inc(x_231);
lean_inc(x_230);
lean_inc(x_229);
lean_inc(x_228);
lean_dec(x_206);
x_232 = 1;
x_233 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_233, 0, x_205);
lean_ctor_set(x_233, 1, x_217);
lean_ctor_set(x_233, 2, x_218);
lean_ctor_set(x_233, 3, x_228);
lean_ctor_set_uint8(x_233, sizeof(void*)*4, x_232);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_231);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_232);
x_234 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_230);
lean_ctor_set(x_1, 1, x_229);
lean_ctor_set(x_1, 0, x_233);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_234);
return x_1;
}
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; 
x_235 = lean_ctor_get(x_203, 1);
x_236 = lean_ctor_get(x_203, 2);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_203);
x_237 = lean_ctor_get(x_206, 0);
lean_inc(x_237);
x_238 = lean_ctor_get(x_206, 1);
lean_inc(x_238);
x_239 = lean_ctor_get(x_206, 2);
lean_inc(x_239);
x_240 = lean_ctor_get(x_206, 3);
lean_inc(x_240);
if (lean_is_exclusive(x_206)) {
 lean_ctor_release(x_206, 0);
 lean_ctor_release(x_206, 1);
 lean_ctor_release(x_206, 2);
 lean_ctor_release(x_206, 3);
 x_241 = x_206;
} else {
 lean_dec_ref(x_206);
 x_241 = lean_box(0);
}
x_242 = 1;
if (lean_is_scalar(x_241)) {
 x_243 = lean_alloc_ctor(1, 4, 1);
} else {
 x_243 = x_241;
}
lean_ctor_set(x_243, 0, x_205);
lean_ctor_set(x_243, 1, x_235);
lean_ctor_set(x_243, 2, x_236);
lean_ctor_set(x_243, 3, x_237);
lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_242);
x_244 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_244, 0, x_240);
lean_ctor_set(x_244, 1, x_43);
lean_ctor_set(x_244, 2, x_44);
lean_ctor_set(x_244, 3, x_45);
lean_ctor_set_uint8(x_244, sizeof(void*)*4, x_242);
x_245 = 0;
lean_ctor_set(x_1, 3, x_244);
lean_ctor_set(x_1, 2, x_239);
lean_ctor_set(x_1, 1, x_238);
lean_ctor_set(x_1, 0, x_243);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_245);
return x_1;
}
}
else
{
uint8_t x_246; 
lean_free_object(x_1);
x_246 = !lean_is_exclusive(x_206);
if (x_246 == 0)
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; 
x_247 = lean_ctor_get(x_206, 3);
lean_dec(x_247);
x_248 = lean_ctor_get(x_206, 2);
lean_dec(x_248);
x_249 = lean_ctor_get(x_206, 1);
lean_dec(x_249);
x_250 = lean_ctor_get(x_206, 0);
lean_dec(x_250);
x_251 = 1;
lean_ctor_set(x_206, 3, x_45);
lean_ctor_set(x_206, 2, x_44);
lean_ctor_set(x_206, 1, x_43);
lean_ctor_set(x_206, 0, x_203);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_251);
return x_206;
}
else
{
uint8_t x_252; lean_object* x_253; 
lean_dec(x_206);
x_252 = 1;
x_253 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_253, 0, x_203);
lean_ctor_set(x_253, 1, x_43);
lean_ctor_set(x_253, 2, x_44);
lean_ctor_set(x_253, 3, x_45);
lean_ctor_set_uint8(x_253, sizeof(void*)*4, x_252);
return x_253;
}
}
}
}
else
{
uint8_t x_254; 
x_254 = lean_ctor_get_uint8(x_205, sizeof(void*)*4);
if (x_254 == 0)
{
uint8_t x_255; 
x_255 = !lean_is_exclusive(x_203);
if (x_255 == 0)
{
lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_256 = lean_ctor_get(x_203, 1);
x_257 = lean_ctor_get(x_203, 2);
x_258 = lean_ctor_get(x_203, 3);
x_259 = lean_ctor_get(x_203, 0);
lean_dec(x_259);
x_260 = !lean_is_exclusive(x_205);
if (x_260 == 0)
{
uint8_t x_261; uint8_t x_262; 
x_261 = 1;
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_261);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_261);
x_262 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_205);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_262);
return x_1;
}
else
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_263 = lean_ctor_get(x_205, 0);
x_264 = lean_ctor_get(x_205, 1);
x_265 = lean_ctor_get(x_205, 2);
x_266 = lean_ctor_get(x_205, 3);
lean_inc(x_266);
lean_inc(x_265);
lean_inc(x_264);
lean_inc(x_263);
lean_dec(x_205);
x_267 = 1;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_263);
lean_ctor_set(x_268, 1, x_264);
lean_ctor_set(x_268, 2, x_265);
lean_ctor_set(x_268, 3, x_266);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_267);
x_269 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
else
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; 
x_270 = lean_ctor_get(x_203, 1);
x_271 = lean_ctor_get(x_203, 2);
x_272 = lean_ctor_get(x_203, 3);
lean_inc(x_272);
lean_inc(x_271);
lean_inc(x_270);
lean_dec(x_203);
x_273 = lean_ctor_get(x_205, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_205, 1);
lean_inc(x_274);
x_275 = lean_ctor_get(x_205, 2);
lean_inc(x_275);
x_276 = lean_ctor_get(x_205, 3);
lean_inc(x_276);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_277 = x_205;
} else {
 lean_dec_ref(x_205);
 x_277 = lean_box(0);
}
x_278 = 1;
if (lean_is_scalar(x_277)) {
 x_279 = lean_alloc_ctor(1, 4, 1);
} else {
 x_279 = x_277;
}
lean_ctor_set(x_279, 0, x_273);
lean_ctor_set(x_279, 1, x_274);
lean_ctor_set(x_279, 2, x_275);
lean_ctor_set(x_279, 3, x_276);
lean_ctor_set_uint8(x_279, sizeof(void*)*4, x_278);
x_280 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_280, 0, x_272);
lean_ctor_set(x_280, 1, x_43);
lean_ctor_set(x_280, 2, x_44);
lean_ctor_set(x_280, 3, x_45);
lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_278);
x_281 = 0;
lean_ctor_set(x_1, 3, x_280);
lean_ctor_set(x_1, 2, x_271);
lean_ctor_set(x_1, 1, x_270);
lean_ctor_set(x_1, 0, x_279);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_281);
return x_1;
}
}
else
{
lean_object* x_282; 
x_282 = lean_ctor_get(x_203, 3);
lean_inc(x_282);
if (lean_obj_tag(x_282) == 0)
{
uint8_t x_283; 
lean_free_object(x_1);
x_283 = !lean_is_exclusive(x_205);
if (x_283 == 0)
{
lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; 
x_284 = lean_ctor_get(x_205, 3);
lean_dec(x_284);
x_285 = lean_ctor_get(x_205, 2);
lean_dec(x_285);
x_286 = lean_ctor_get(x_205, 1);
lean_dec(x_286);
x_287 = lean_ctor_get(x_205, 0);
lean_dec(x_287);
x_288 = 1;
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_203);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_288);
return x_205;
}
else
{
uint8_t x_289; lean_object* x_290; 
lean_dec(x_205);
x_289 = 1;
x_290 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_290, 0, x_203);
lean_ctor_set(x_290, 1, x_43);
lean_ctor_set(x_290, 2, x_44);
lean_ctor_set(x_290, 3, x_45);
lean_ctor_set_uint8(x_290, sizeof(void*)*4, x_289);
return x_290;
}
}
else
{
uint8_t x_291; 
x_291 = lean_ctor_get_uint8(x_282, sizeof(void*)*4);
if (x_291 == 0)
{
uint8_t x_292; 
lean_free_object(x_1);
x_292 = !lean_is_exclusive(x_203);
if (x_292 == 0)
{
lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_293 = lean_ctor_get(x_203, 1);
x_294 = lean_ctor_get(x_203, 2);
x_295 = lean_ctor_get(x_203, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_203, 0);
lean_dec(x_296);
x_297 = !lean_is_exclusive(x_282);
if (x_297 == 0)
{
lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_298 = lean_ctor_get(x_282, 0);
x_299 = lean_ctor_get(x_282, 1);
x_300 = lean_ctor_get(x_282, 2);
x_301 = lean_ctor_get(x_282, 3);
x_302 = 1;
lean_inc(x_205);
lean_ctor_set(x_282, 3, x_298);
lean_ctor_set(x_282, 2, x_294);
lean_ctor_set(x_282, 1, x_293);
lean_ctor_set(x_282, 0, x_205);
x_303 = !lean_is_exclusive(x_205);
if (x_303 == 0)
{
lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_205, 3);
lean_dec(x_304);
x_305 = lean_ctor_get(x_205, 2);
lean_dec(x_305);
x_306 = lean_ctor_get(x_205, 1);
lean_dec(x_306);
x_307 = lean_ctor_get(x_205, 0);
lean_dec(x_307);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_301);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_302);
x_308 = 0;
lean_ctor_set(x_203, 3, x_205);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_308);
return x_203;
}
else
{
lean_object* x_309; uint8_t x_310; 
lean_dec(x_205);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
x_309 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_309, 0, x_301);
lean_ctor_set(x_309, 1, x_43);
lean_ctor_set(x_309, 2, x_44);
lean_ctor_set(x_309, 3, x_45);
lean_ctor_set_uint8(x_309, sizeof(void*)*4, x_302);
x_310 = 0;
lean_ctor_set(x_203, 3, x_309);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_310);
return x_203;
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_282, 0);
x_312 = lean_ctor_get(x_282, 1);
x_313 = lean_ctor_get(x_282, 2);
x_314 = lean_ctor_get(x_282, 3);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_282);
x_315 = 1;
lean_inc(x_205);
x_316 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_316, 0, x_205);
lean_ctor_set(x_316, 1, x_293);
lean_ctor_set(x_316, 2, x_294);
lean_ctor_set(x_316, 3, x_311);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_317 = x_205;
} else {
 lean_dec_ref(x_205);
 x_317 = lean_box(0);
}
lean_ctor_set_uint8(x_316, sizeof(void*)*4, x_315);
if (lean_is_scalar(x_317)) {
 x_318 = lean_alloc_ctor(1, 4, 1);
} else {
 x_318 = x_317;
}
lean_ctor_set(x_318, 0, x_314);
lean_ctor_set(x_318, 1, x_43);
lean_ctor_set(x_318, 2, x_44);
lean_ctor_set(x_318, 3, x_45);
lean_ctor_set_uint8(x_318, sizeof(void*)*4, x_315);
x_319 = 0;
lean_ctor_set(x_203, 3, x_318);
lean_ctor_set(x_203, 2, x_313);
lean_ctor_set(x_203, 1, x_312);
lean_ctor_set(x_203, 0, x_316);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_319);
return x_203;
}
}
else
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; 
x_320 = lean_ctor_get(x_203, 1);
x_321 = lean_ctor_get(x_203, 2);
lean_inc(x_321);
lean_inc(x_320);
lean_dec(x_203);
x_322 = lean_ctor_get(x_282, 0);
lean_inc(x_322);
x_323 = lean_ctor_get(x_282, 1);
lean_inc(x_323);
x_324 = lean_ctor_get(x_282, 2);
lean_inc(x_324);
x_325 = lean_ctor_get(x_282, 3);
lean_inc(x_325);
if (lean_is_exclusive(x_282)) {
 lean_ctor_release(x_282, 0);
 lean_ctor_release(x_282, 1);
 lean_ctor_release(x_282, 2);
 lean_ctor_release(x_282, 3);
 x_326 = x_282;
} else {
 lean_dec_ref(x_282);
 x_326 = lean_box(0);
}
x_327 = 1;
lean_inc(x_205);
if (lean_is_scalar(x_326)) {
 x_328 = lean_alloc_ctor(1, 4, 1);
} else {
 x_328 = x_326;
}
lean_ctor_set(x_328, 0, x_205);
lean_ctor_set(x_328, 1, x_320);
lean_ctor_set(x_328, 2, x_321);
lean_ctor_set(x_328, 3, x_322);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_329 = x_205;
} else {
 lean_dec_ref(x_205);
 x_329 = lean_box(0);
}
lean_ctor_set_uint8(x_328, sizeof(void*)*4, x_327);
if (lean_is_scalar(x_329)) {
 x_330 = lean_alloc_ctor(1, 4, 1);
} else {
 x_330 = x_329;
}
lean_ctor_set(x_330, 0, x_325);
lean_ctor_set(x_330, 1, x_43);
lean_ctor_set(x_330, 2, x_44);
lean_ctor_set(x_330, 3, x_45);
lean_ctor_set_uint8(x_330, sizeof(void*)*4, x_327);
x_331 = 0;
x_332 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_332, 0, x_328);
lean_ctor_set(x_332, 1, x_323);
lean_ctor_set(x_332, 2, x_324);
lean_ctor_set(x_332, 3, x_330);
lean_ctor_set_uint8(x_332, sizeof(void*)*4, x_331);
return x_332;
}
}
else
{
uint8_t x_333; 
x_333 = !lean_is_exclusive(x_203);
if (x_333 == 0)
{
lean_object* x_334; lean_object* x_335; uint8_t x_336; 
x_334 = lean_ctor_get(x_203, 3);
lean_dec(x_334);
x_335 = lean_ctor_get(x_203, 0);
lean_dec(x_335);
x_336 = !lean_is_exclusive(x_205);
if (x_336 == 0)
{
uint8_t x_337; 
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_291);
x_337 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_337);
return x_1;
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; 
x_338 = lean_ctor_get(x_205, 0);
x_339 = lean_ctor_get(x_205, 1);
x_340 = lean_ctor_get(x_205, 2);
x_341 = lean_ctor_get(x_205, 3);
lean_inc(x_341);
lean_inc(x_340);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_205);
x_342 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_342, 0, x_338);
lean_ctor_set(x_342, 1, x_339);
lean_ctor_set(x_342, 2, x_340);
lean_ctor_set(x_342, 3, x_341);
lean_ctor_set_uint8(x_342, sizeof(void*)*4, x_291);
lean_ctor_set(x_203, 0, x_342);
x_343 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343);
return x_1;
}
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; 
x_344 = lean_ctor_get(x_203, 1);
x_345 = lean_ctor_get(x_203, 2);
lean_inc(x_345);
lean_inc(x_344);
lean_dec(x_203);
x_346 = lean_ctor_get(x_205, 0);
lean_inc(x_346);
x_347 = lean_ctor_get(x_205, 1);
lean_inc(x_347);
x_348 = lean_ctor_get(x_205, 2);
lean_inc(x_348);
x_349 = lean_ctor_get(x_205, 3);
lean_inc(x_349);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_350 = x_205;
} else {
 lean_dec_ref(x_205);
 x_350 = lean_box(0);
}
if (lean_is_scalar(x_350)) {
 x_351 = lean_alloc_ctor(1, 4, 1);
} else {
 x_351 = x_350;
}
lean_ctor_set(x_351, 0, x_346);
lean_ctor_set(x_351, 1, x_347);
lean_ctor_set(x_351, 2, x_348);
lean_ctor_set(x_351, 3, x_349);
lean_ctor_set_uint8(x_351, sizeof(void*)*4, x_291);
x_352 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_344);
lean_ctor_set(x_352, 2, x_345);
lean_ctor_set(x_352, 3, x_282);
lean_ctor_set_uint8(x_352, sizeof(void*)*4, x_204);
x_353 = 1;
lean_ctor_set(x_1, 0, x_352);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_353);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_354; 
x_354 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_354);
return x_1;
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint64_t x_359; uint8_t x_360; 
x_355 = lean_ctor_get(x_1, 0);
x_356 = lean_ctor_get(x_1, 1);
x_357 = lean_ctor_get(x_1, 2);
x_358 = lean_ctor_get(x_1, 3);
lean_inc(x_358);
lean_inc(x_357);
lean_inc(x_356);
lean_inc(x_355);
lean_dec(x_1);
x_359 = lean_unbox_uint64(x_356);
x_360 = lean_uint64_dec_lt(x_2, x_359);
if (x_360 == 0)
{
uint64_t x_361; uint8_t x_362; 
x_361 = lean_unbox_uint64(x_356);
x_362 = lean_uint64_dec_eq(x_2, x_361);
if (x_362 == 0)
{
lean_object* x_363; uint8_t x_364; 
x_363 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_358, x_2, x_3);
x_364 = lean_ctor_get_uint8(x_363, sizeof(void*)*4);
if (x_364 == 0)
{
lean_object* x_365; 
x_365 = lean_ctor_get(x_363, 0);
lean_inc(x_365);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_366; 
x_366 = lean_ctor_get(x_363, 3);
lean_inc(x_366);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; 
x_367 = lean_ctor_get(x_363, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_363, 2);
lean_inc(x_368);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_369 = x_363;
} else {
 lean_dec_ref(x_363);
 x_369 = lean_box(0);
}
if (lean_is_scalar(x_369)) {
 x_370 = lean_alloc_ctor(1, 4, 1);
} else {
 x_370 = x_369;
}
lean_ctor_set(x_370, 0, x_366);
lean_ctor_set(x_370, 1, x_367);
lean_ctor_set(x_370, 2, x_368);
lean_ctor_set(x_370, 3, x_366);
lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_364);
x_371 = 1;
x_372 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_372, 0, x_355);
lean_ctor_set(x_372, 1, x_356);
lean_ctor_set(x_372, 2, x_357);
lean_ctor_set(x_372, 3, x_370);
lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_371);
return x_372;
}
else
{
uint8_t x_373; 
x_373 = lean_ctor_get_uint8(x_366, sizeof(void*)*4);
if (x_373 == 0)
{
lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; lean_object* x_383; lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_374 = lean_ctor_get(x_363, 1);
lean_inc(x_374);
x_375 = lean_ctor_get(x_363, 2);
lean_inc(x_375);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_376 = x_363;
} else {
 lean_dec_ref(x_363);
 x_376 = lean_box(0);
}
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_ctor_get(x_366, 1);
lean_inc(x_378);
x_379 = lean_ctor_get(x_366, 2);
lean_inc(x_379);
x_380 = lean_ctor_get(x_366, 3);
lean_inc(x_380);
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_381 = x_366;
} else {
 lean_dec_ref(x_366);
 x_381 = lean_box(0);
}
x_382 = 1;
if (lean_is_scalar(x_381)) {
 x_383 = lean_alloc_ctor(1, 4, 1);
} else {
 x_383 = x_381;
}
lean_ctor_set(x_383, 0, x_355);
lean_ctor_set(x_383, 1, x_356);
lean_ctor_set(x_383, 2, x_357);
lean_ctor_set(x_383, 3, x_365);
lean_ctor_set_uint8(x_383, sizeof(void*)*4, x_382);
if (lean_is_scalar(x_376)) {
 x_384 = lean_alloc_ctor(1, 4, 1);
} else {
 x_384 = x_376;
}
lean_ctor_set(x_384, 0, x_377);
lean_ctor_set(x_384, 1, x_378);
lean_ctor_set(x_384, 2, x_379);
lean_ctor_set(x_384, 3, x_380);
lean_ctor_set_uint8(x_384, sizeof(void*)*4, x_382);
x_385 = 0;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_383);
lean_ctor_set(x_386, 1, x_374);
lean_ctor_set(x_386, 2, x_375);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; uint8_t x_388; lean_object* x_389; 
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_387 = x_366;
} else {
 lean_dec_ref(x_366);
 x_387 = lean_box(0);
}
x_388 = 1;
if (lean_is_scalar(x_387)) {
 x_389 = lean_alloc_ctor(1, 4, 1);
} else {
 x_389 = x_387;
}
lean_ctor_set(x_389, 0, x_355);
lean_ctor_set(x_389, 1, x_356);
lean_ctor_set(x_389, 2, x_357);
lean_ctor_set(x_389, 3, x_363);
lean_ctor_set_uint8(x_389, sizeof(void*)*4, x_388);
return x_389;
}
}
}
else
{
uint8_t x_390; 
x_390 = lean_ctor_get_uint8(x_365, sizeof(void*)*4);
if (x_390 == 0)
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; lean_object* x_404; 
x_391 = lean_ctor_get(x_363, 1);
lean_inc(x_391);
x_392 = lean_ctor_get(x_363, 2);
lean_inc(x_392);
x_393 = lean_ctor_get(x_363, 3);
lean_inc(x_393);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_394 = x_363;
} else {
 lean_dec_ref(x_363);
 x_394 = lean_box(0);
}
x_395 = lean_ctor_get(x_365, 0);
lean_inc(x_395);
x_396 = lean_ctor_get(x_365, 1);
lean_inc(x_396);
x_397 = lean_ctor_get(x_365, 2);
lean_inc(x_397);
x_398 = lean_ctor_get(x_365, 3);
lean_inc(x_398);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_399 = x_365;
} else {
 lean_dec_ref(x_365);
 x_399 = lean_box(0);
}
x_400 = 1;
if (lean_is_scalar(x_399)) {
 x_401 = lean_alloc_ctor(1, 4, 1);
} else {
 x_401 = x_399;
}
lean_ctor_set(x_401, 0, x_355);
lean_ctor_set(x_401, 1, x_356);
lean_ctor_set(x_401, 2, x_357);
lean_ctor_set(x_401, 3, x_395);
lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400);
if (lean_is_scalar(x_394)) {
 x_402 = lean_alloc_ctor(1, 4, 1);
} else {
 x_402 = x_394;
}
lean_ctor_set(x_402, 0, x_398);
lean_ctor_set(x_402, 1, x_391);
lean_ctor_set(x_402, 2, x_392);
lean_ctor_set(x_402, 3, x_393);
lean_ctor_set_uint8(x_402, sizeof(void*)*4, x_400);
x_403 = 0;
x_404 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_404, 0, x_401);
lean_ctor_set(x_404, 1, x_396);
lean_ctor_set(x_404, 2, x_397);
lean_ctor_set(x_404, 3, x_402);
lean_ctor_set_uint8(x_404, sizeof(void*)*4, x_403);
return x_404;
}
else
{
lean_object* x_405; 
x_405 = lean_ctor_get(x_363, 3);
lean_inc(x_405);
if (lean_obj_tag(x_405) == 0)
{
lean_object* x_406; uint8_t x_407; lean_object* x_408; 
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_406 = x_365;
} else {
 lean_dec_ref(x_365);
 x_406 = lean_box(0);
}
x_407 = 1;
if (lean_is_scalar(x_406)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_406;
}
lean_ctor_set(x_408, 0, x_355);
lean_ctor_set(x_408, 1, x_356);
lean_ctor_set(x_408, 2, x_357);
lean_ctor_set(x_408, 3, x_363);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_407);
return x_408;
}
else
{
uint8_t x_409; 
x_409 = lean_ctor_get_uint8(x_405, sizeof(void*)*4);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; 
x_410 = lean_ctor_get(x_363, 1);
lean_inc(x_410);
x_411 = lean_ctor_get(x_363, 2);
lean_inc(x_411);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_412 = x_363;
} else {
 lean_dec_ref(x_363);
 x_412 = lean_box(0);
}
x_413 = lean_ctor_get(x_405, 0);
lean_inc(x_413);
x_414 = lean_ctor_get(x_405, 1);
lean_inc(x_414);
x_415 = lean_ctor_get(x_405, 2);
lean_inc(x_415);
x_416 = lean_ctor_get(x_405, 3);
lean_inc(x_416);
if (lean_is_exclusive(x_405)) {
 lean_ctor_release(x_405, 0);
 lean_ctor_release(x_405, 1);
 lean_ctor_release(x_405, 2);
 lean_ctor_release(x_405, 3);
 x_417 = x_405;
} else {
 lean_dec_ref(x_405);
 x_417 = lean_box(0);
}
x_418 = 1;
lean_inc(x_365);
if (lean_is_scalar(x_417)) {
 x_419 = lean_alloc_ctor(1, 4, 1);
} else {
 x_419 = x_417;
}
lean_ctor_set(x_419, 0, x_355);
lean_ctor_set(x_419, 1, x_356);
lean_ctor_set(x_419, 2, x_357);
lean_ctor_set(x_419, 3, x_365);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_420 = x_365;
} else {
 lean_dec_ref(x_365);
 x_420 = lean_box(0);
}
lean_ctor_set_uint8(x_419, sizeof(void*)*4, x_418);
if (lean_is_scalar(x_420)) {
 x_421 = lean_alloc_ctor(1, 4, 1);
} else {
 x_421 = x_420;
}
lean_ctor_set(x_421, 0, x_413);
lean_ctor_set(x_421, 1, x_414);
lean_ctor_set(x_421, 2, x_415);
lean_ctor_set(x_421, 3, x_416);
lean_ctor_set_uint8(x_421, sizeof(void*)*4, x_418);
x_422 = 0;
if (lean_is_scalar(x_412)) {
 x_423 = lean_alloc_ctor(1, 4, 1);
} else {
 x_423 = x_412;
}
lean_ctor_set(x_423, 0, x_419);
lean_ctor_set(x_423, 1, x_410);
lean_ctor_set(x_423, 2, x_411);
lean_ctor_set(x_423, 3, x_421);
lean_ctor_set_uint8(x_423, sizeof(void*)*4, x_422);
return x_423;
}
else
{
lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; 
x_424 = lean_ctor_get(x_363, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_363, 2);
lean_inc(x_425);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_426 = x_363;
} else {
 lean_dec_ref(x_363);
 x_426 = lean_box(0);
}
x_427 = lean_ctor_get(x_365, 0);
lean_inc(x_427);
x_428 = lean_ctor_get(x_365, 1);
lean_inc(x_428);
x_429 = lean_ctor_get(x_365, 2);
lean_inc(x_429);
x_430 = lean_ctor_get(x_365, 3);
lean_inc(x_430);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_431 = x_365;
} else {
 lean_dec_ref(x_365);
 x_431 = lean_box(0);
}
if (lean_is_scalar(x_431)) {
 x_432 = lean_alloc_ctor(1, 4, 1);
} else {
 x_432 = x_431;
}
lean_ctor_set(x_432, 0, x_427);
lean_ctor_set(x_432, 1, x_428);
lean_ctor_set(x_432, 2, x_429);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_409);
if (lean_is_scalar(x_426)) {
 x_433 = lean_alloc_ctor(1, 4, 1);
} else {
 x_433 = x_426;
}
lean_ctor_set(x_433, 0, x_432);
lean_ctor_set(x_433, 1, x_424);
lean_ctor_set(x_433, 2, x_425);
lean_ctor_set(x_433, 3, x_405);
lean_ctor_set_uint8(x_433, sizeof(void*)*4, x_364);
x_434 = 1;
x_435 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_435, 0, x_355);
lean_ctor_set(x_435, 1, x_356);
lean_ctor_set(x_435, 2, x_357);
lean_ctor_set(x_435, 3, x_433);
lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434);
return x_435;
}
}
}
}
}
else
{
uint8_t x_436; lean_object* x_437; 
x_436 = 1;
x_437 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_437, 0, x_355);
lean_ctor_set(x_437, 1, x_356);
lean_ctor_set(x_437, 2, x_357);
lean_ctor_set(x_437, 3, x_363);
lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_436);
return x_437;
}
}
else
{
uint8_t x_438; lean_object* x_439; lean_object* x_440; 
lean_dec(x_357);
lean_dec(x_356);
x_438 = 1;
x_439 = lean_box_uint64(x_2);
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_355);
lean_ctor_set(x_440, 1, x_439);
lean_ctor_set(x_440, 2, x_3);
lean_ctor_set(x_440, 3, x_358);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_438);
return x_440;
}
}
else
{
lean_object* x_441; uint8_t x_442; 
x_441 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_355, x_2, x_3);
x_442 = lean_ctor_get_uint8(x_441, sizeof(void*)*4);
if (x_442 == 0)
{
lean_object* x_443; 
x_443 = lean_ctor_get(x_441, 0);
lean_inc(x_443);
if (lean_obj_tag(x_443) == 0)
{
lean_object* x_444; 
x_444 = lean_ctor_get(x_441, 3);
lean_inc(x_444);
if (lean_obj_tag(x_444) == 0)
{
lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; 
x_445 = lean_ctor_get(x_441, 1);
lean_inc(x_445);
x_446 = lean_ctor_get(x_441, 2);
lean_inc(x_446);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_447 = x_441;
} else {
 lean_dec_ref(x_441);
 x_447 = lean_box(0);
}
if (lean_is_scalar(x_447)) {
 x_448 = lean_alloc_ctor(1, 4, 1);
} else {
 x_448 = x_447;
}
lean_ctor_set(x_448, 0, x_444);
lean_ctor_set(x_448, 1, x_445);
lean_ctor_set(x_448, 2, x_446);
lean_ctor_set(x_448, 3, x_444);
lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_442);
x_449 = 1;
x_450 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_450, 0, x_448);
lean_ctor_set(x_450, 1, x_356);
lean_ctor_set(x_450, 2, x_357);
lean_ctor_set(x_450, 3, x_358);
lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449);
return x_450;
}
else
{
uint8_t x_451; 
x_451 = lean_ctor_get_uint8(x_444, sizeof(void*)*4);
if (x_451 == 0)
{
lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; lean_object* x_464; 
x_452 = lean_ctor_get(x_441, 1);
lean_inc(x_452);
x_453 = lean_ctor_get(x_441, 2);
lean_inc(x_453);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_454 = x_441;
} else {
 lean_dec_ref(x_441);
 x_454 = lean_box(0);
}
x_455 = lean_ctor_get(x_444, 0);
lean_inc(x_455);
x_456 = lean_ctor_get(x_444, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_444, 2);
lean_inc(x_457);
x_458 = lean_ctor_get(x_444, 3);
lean_inc(x_458);
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_459 = x_444;
} else {
 lean_dec_ref(x_444);
 x_459 = lean_box(0);
}
x_460 = 1;
if (lean_is_scalar(x_459)) {
 x_461 = lean_alloc_ctor(1, 4, 1);
} else {
 x_461 = x_459;
}
lean_ctor_set(x_461, 0, x_443);
lean_ctor_set(x_461, 1, x_452);
lean_ctor_set(x_461, 2, x_453);
lean_ctor_set(x_461, 3, x_455);
lean_ctor_set_uint8(x_461, sizeof(void*)*4, x_460);
if (lean_is_scalar(x_454)) {
 x_462 = lean_alloc_ctor(1, 4, 1);
} else {
 x_462 = x_454;
}
lean_ctor_set(x_462, 0, x_458);
lean_ctor_set(x_462, 1, x_356);
lean_ctor_set(x_462, 2, x_357);
lean_ctor_set(x_462, 3, x_358);
lean_ctor_set_uint8(x_462, sizeof(void*)*4, x_460);
x_463 = 0;
x_464 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_464, 0, x_461);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_463);
return x_464;
}
else
{
lean_object* x_465; uint8_t x_466; lean_object* x_467; 
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_465 = x_444;
} else {
 lean_dec_ref(x_444);
 x_465 = lean_box(0);
}
x_466 = 1;
if (lean_is_scalar(x_465)) {
 x_467 = lean_alloc_ctor(1, 4, 1);
} else {
 x_467 = x_465;
}
lean_ctor_set(x_467, 0, x_441);
lean_ctor_set(x_467, 1, x_356);
lean_ctor_set(x_467, 2, x_357);
lean_ctor_set(x_467, 3, x_358);
lean_ctor_set_uint8(x_467, sizeof(void*)*4, x_466);
return x_467;
}
}
}
else
{
uint8_t x_468; 
x_468 = lean_ctor_get_uint8(x_443, sizeof(void*)*4);
if (x_468 == 0)
{
lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; 
x_469 = lean_ctor_get(x_441, 1);
lean_inc(x_469);
x_470 = lean_ctor_get(x_441, 2);
lean_inc(x_470);
x_471 = lean_ctor_get(x_441, 3);
lean_inc(x_471);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_472 = x_441;
} else {
 lean_dec_ref(x_441);
 x_472 = lean_box(0);
}
x_473 = lean_ctor_get(x_443, 0);
lean_inc(x_473);
x_474 = lean_ctor_get(x_443, 1);
lean_inc(x_474);
x_475 = lean_ctor_get(x_443, 2);
lean_inc(x_475);
x_476 = lean_ctor_get(x_443, 3);
lean_inc(x_476);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_477 = x_443;
} else {
 lean_dec_ref(x_443);
 x_477 = lean_box(0);
}
x_478 = 1;
if (lean_is_scalar(x_477)) {
 x_479 = lean_alloc_ctor(1, 4, 1);
} else {
 x_479 = x_477;
}
lean_ctor_set(x_479, 0, x_473);
lean_ctor_set(x_479, 1, x_474);
lean_ctor_set(x_479, 2, x_475);
lean_ctor_set(x_479, 3, x_476);
lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478);
if (lean_is_scalar(x_472)) {
 x_480 = lean_alloc_ctor(1, 4, 1);
} else {
 x_480 = x_472;
}
lean_ctor_set(x_480, 0, x_471);
lean_ctor_set(x_480, 1, x_356);
lean_ctor_set(x_480, 2, x_357);
lean_ctor_set(x_480, 3, x_358);
lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478);
x_481 = 0;
x_482 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_482, 0, x_479);
lean_ctor_set(x_482, 1, x_469);
lean_ctor_set(x_482, 2, x_470);
lean_ctor_set(x_482, 3, x_480);
lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481);
return x_482;
}
else
{
lean_object* x_483; 
x_483 = lean_ctor_get(x_441, 3);
lean_inc(x_483);
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_484; uint8_t x_485; lean_object* x_486; 
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_484 = x_443;
} else {
 lean_dec_ref(x_443);
 x_484 = lean_box(0);
}
x_485 = 1;
if (lean_is_scalar(x_484)) {
 x_486 = lean_alloc_ctor(1, 4, 1);
} else {
 x_486 = x_484;
}
lean_ctor_set(x_486, 0, x_441);
lean_ctor_set(x_486, 1, x_356);
lean_ctor_set(x_486, 2, x_357);
lean_ctor_set(x_486, 3, x_358);
lean_ctor_set_uint8(x_486, sizeof(void*)*4, x_485);
return x_486;
}
else
{
uint8_t x_487; 
x_487 = lean_ctor_get_uint8(x_483, sizeof(void*)*4);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; 
x_488 = lean_ctor_get(x_441, 1);
lean_inc(x_488);
x_489 = lean_ctor_get(x_441, 2);
lean_inc(x_489);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_490 = x_441;
} else {
 lean_dec_ref(x_441);
 x_490 = lean_box(0);
}
x_491 = lean_ctor_get(x_483, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_483, 1);
lean_inc(x_492);
x_493 = lean_ctor_get(x_483, 2);
lean_inc(x_493);
x_494 = lean_ctor_get(x_483, 3);
lean_inc(x_494);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 lean_ctor_release(x_483, 1);
 lean_ctor_release(x_483, 2);
 lean_ctor_release(x_483, 3);
 x_495 = x_483;
} else {
 lean_dec_ref(x_483);
 x_495 = lean_box(0);
}
x_496 = 1;
lean_inc(x_443);
if (lean_is_scalar(x_495)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_495;
}
lean_ctor_set(x_497, 0, x_443);
lean_ctor_set(x_497, 1, x_488);
lean_ctor_set(x_497, 2, x_489);
lean_ctor_set(x_497, 3, x_491);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_498 = x_443;
} else {
 lean_dec_ref(x_443);
 x_498 = lean_box(0);
}
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_496);
if (lean_is_scalar(x_498)) {
 x_499 = lean_alloc_ctor(1, 4, 1);
} else {
 x_499 = x_498;
}
lean_ctor_set(x_499, 0, x_494);
lean_ctor_set(x_499, 1, x_356);
lean_ctor_set(x_499, 2, x_357);
lean_ctor_set(x_499, 3, x_358);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_496);
x_500 = 0;
if (lean_is_scalar(x_490)) {
 x_501 = lean_alloc_ctor(1, 4, 1);
} else {
 x_501 = x_490;
}
lean_ctor_set(x_501, 0, x_497);
lean_ctor_set(x_501, 1, x_492);
lean_ctor_set(x_501, 2, x_493);
lean_ctor_set(x_501, 3, x_499);
lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500);
return x_501;
}
else
{
lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; uint8_t x_512; lean_object* x_513; 
x_502 = lean_ctor_get(x_441, 1);
lean_inc(x_502);
x_503 = lean_ctor_get(x_441, 2);
lean_inc(x_503);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_504 = x_441;
} else {
 lean_dec_ref(x_441);
 x_504 = lean_box(0);
}
x_505 = lean_ctor_get(x_443, 0);
lean_inc(x_505);
x_506 = lean_ctor_get(x_443, 1);
lean_inc(x_506);
x_507 = lean_ctor_get(x_443, 2);
lean_inc(x_507);
x_508 = lean_ctor_get(x_443, 3);
lean_inc(x_508);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_509 = x_443;
} else {
 lean_dec_ref(x_443);
 x_509 = lean_box(0);
}
if (lean_is_scalar(x_509)) {
 x_510 = lean_alloc_ctor(1, 4, 1);
} else {
 x_510 = x_509;
}
lean_ctor_set(x_510, 0, x_505);
lean_ctor_set(x_510, 1, x_506);
lean_ctor_set(x_510, 2, x_507);
lean_ctor_set(x_510, 3, x_508);
lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_487);
if (lean_is_scalar(x_504)) {
 x_511 = lean_alloc_ctor(1, 4, 1);
} else {
 x_511 = x_504;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_502);
lean_ctor_set(x_511, 2, x_503);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set_uint8(x_511, sizeof(void*)*4, x_442);
x_512 = 1;
x_513 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_513, 0, x_511);
lean_ctor_set(x_513, 1, x_356);
lean_ctor_set(x_513, 2, x_357);
lean_ctor_set(x_513, 3, x_358);
lean_ctor_set_uint8(x_513, sizeof(void*)*4, x_512);
return x_513;
}
}
}
}
}
else
{
uint8_t x_514; lean_object* x_515; 
x_514 = 1;
x_515 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_515, 0, x_441);
lean_ctor_set(x_515, 1, x_356);
lean_ctor_set(x_515, 2, x_357);
lean_ctor_set(x_515, 3, x_358);
lean_ctor_set_uint8(x_515, sizeof(void*)*4, x_514);
return x_515;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Lean_RBNode_isRed___rarg(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_1, x_2, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_1, x_2, x_3);
x_7 = l_Lean_RBNode_setBlack___rarg(x_6);
return x_7;
}
}
}
static lean_object* _init_l_Lean_Widget_addBuiltinModule___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_builtinModulesRef;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addBuiltinModule(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = l_Lean_Widget_addBuiltinModule___closed__1;
x_5 = lean_st_ref_take(x_4, x_3);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
x_9 = lean_ctor_get(x_2, 1);
lean_inc(x_9);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 0, x_1);
x_10 = lean_unbox_uint64(x_9);
lean_dec(x_9);
x_11 = l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1(x_7, x_10, x_5);
x_12 = lean_st_ref_set(x_4, x_11, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
return x_12;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_17 = lean_ctor_get(x_5, 0);
x_18 = lean_ctor_get(x_5, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_5);
x_19 = lean_ctor_get(x_2, 1);
lean_inc(x_19);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_1);
lean_ctor_set(x_20, 1, x_2);
x_21 = lean_unbox_uint64(x_19);
lean_dec(x_19);
x_22 = l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1(x_17, x_21, x_20);
x_23 = lean_st_ref_set(x_4, x_22, x_18);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 x_26 = x_23;
} else {
 lean_dec_ref(x_23);
 x_26 = lean_box(0);
}
if (lean_is_scalar(x_26)) {
 x_27 = lean_alloc_ctor(0, 2, 0);
} else {
 x_27 = x_26;
}
lean_ctor_set(x_27, 0, x_24);
lean_ctor_set(x_27, 1, x_25);
return x_27;
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_addBuiltinModule___spec__2(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_insert___at_Lean_Widget_addBuiltinModule___spec__1(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint64(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint64(x_11);
x_15 = lean_uint64_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint64_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint64(x_11);
x_17 = lean_uint64_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint64(x_25);
x_29 = lean_uint64_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint64_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint64(x_25);
x_31 = lean_uint64_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint64(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint64(x_43);
x_47 = lean_uint64_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint64_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint64(x_43);
x_49 = lean_uint64_dec_eq(x_2, x_48);
if (x_49 == 0)
{
lean_object* x_50; uint8_t x_51; 
x_50 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_45, x_2, x_3);
x_51 = lean_ctor_get_uint8(x_50, sizeof(void*)*4);
if (x_51 == 0)
{
lean_object* x_52; 
x_52 = lean_ctor_get(x_50, 0);
lean_inc(x_52);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; 
x_53 = lean_ctor_get(x_50, 3);
lean_inc(x_53);
if (lean_obj_tag(x_53) == 0)
{
uint8_t x_54; 
x_54 = !lean_is_exclusive(x_50);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_55 = lean_ctor_get(x_50, 3);
lean_dec(x_55);
x_56 = lean_ctor_get(x_50, 0);
lean_dec(x_56);
lean_ctor_set(x_50, 0, x_53);
x_57 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_57);
return x_1;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; 
x_58 = lean_ctor_get(x_50, 1);
x_59 = lean_ctor_get(x_50, 2);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_50);
x_60 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_60, 0, x_53);
lean_ctor_set(x_60, 1, x_58);
lean_ctor_set(x_60, 2, x_59);
lean_ctor_set(x_60, 3, x_53);
lean_ctor_set_uint8(x_60, sizeof(void*)*4, x_51);
x_61 = 1;
lean_ctor_set(x_1, 3, x_60);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_61);
return x_1;
}
}
else
{
uint8_t x_62; 
x_62 = lean_ctor_get_uint8(x_53, sizeof(void*)*4);
if (x_62 == 0)
{
uint8_t x_63; 
x_63 = !lean_is_exclusive(x_50);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_64 = lean_ctor_get(x_50, 1);
x_65 = lean_ctor_get(x_50, 2);
x_66 = lean_ctor_get(x_50, 3);
lean_dec(x_66);
x_67 = lean_ctor_get(x_50, 0);
lean_dec(x_67);
x_68 = !lean_is_exclusive(x_53);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; 
x_69 = lean_ctor_get(x_53, 0);
x_70 = lean_ctor_get(x_53, 1);
x_71 = lean_ctor_get(x_53, 2);
x_72 = lean_ctor_get(x_53, 3);
x_73 = 1;
lean_ctor_set(x_53, 3, x_52);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_73);
lean_ctor_set(x_50, 3, x_72);
lean_ctor_set(x_50, 2, x_71);
lean_ctor_set(x_50, 1, x_70);
lean_ctor_set(x_50, 0, x_69);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_73);
x_74 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_74);
return x_1;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; uint8_t x_81; 
x_75 = lean_ctor_get(x_53, 0);
x_76 = lean_ctor_get(x_53, 1);
x_77 = lean_ctor_get(x_53, 2);
x_78 = lean_ctor_get(x_53, 3);
lean_inc(x_78);
lean_inc(x_77);
lean_inc(x_76);
lean_inc(x_75);
lean_dec(x_53);
x_79 = 1;
x_80 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_80, 0, x_42);
lean_ctor_set(x_80, 1, x_43);
lean_ctor_set(x_80, 2, x_44);
lean_ctor_set(x_80, 3, x_52);
lean_ctor_set_uint8(x_80, sizeof(void*)*4, x_79);
lean_ctor_set(x_50, 3, x_78);
lean_ctor_set(x_50, 2, x_77);
lean_ctor_set(x_50, 1, x_76);
lean_ctor_set(x_50, 0, x_75);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_79);
x_81 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_80);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_81);
return x_1;
}
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; 
x_82 = lean_ctor_get(x_50, 1);
x_83 = lean_ctor_get(x_50, 2);
lean_inc(x_83);
lean_inc(x_82);
lean_dec(x_50);
x_84 = lean_ctor_get(x_53, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_53, 1);
lean_inc(x_85);
x_86 = lean_ctor_get(x_53, 2);
lean_inc(x_86);
x_87 = lean_ctor_get(x_53, 3);
lean_inc(x_87);
if (lean_is_exclusive(x_53)) {
 lean_ctor_release(x_53, 0);
 lean_ctor_release(x_53, 1);
 lean_ctor_release(x_53, 2);
 lean_ctor_release(x_53, 3);
 x_88 = x_53;
} else {
 lean_dec_ref(x_53);
 x_88 = lean_box(0);
}
x_89 = 1;
if (lean_is_scalar(x_88)) {
 x_90 = lean_alloc_ctor(1, 4, 1);
} else {
 x_90 = x_88;
}
lean_ctor_set(x_90, 0, x_42);
lean_ctor_set(x_90, 1, x_43);
lean_ctor_set(x_90, 2, x_44);
lean_ctor_set(x_90, 3, x_52);
lean_ctor_set_uint8(x_90, sizeof(void*)*4, x_89);
x_91 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_91, 0, x_84);
lean_ctor_set(x_91, 1, x_85);
lean_ctor_set(x_91, 2, x_86);
lean_ctor_set(x_91, 3, x_87);
lean_ctor_set_uint8(x_91, sizeof(void*)*4, x_89);
x_92 = 0;
lean_ctor_set(x_1, 3, x_91);
lean_ctor_set(x_1, 2, x_83);
lean_ctor_set(x_1, 1, x_82);
lean_ctor_set(x_1, 0, x_90);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_92);
return x_1;
}
}
else
{
uint8_t x_93; 
lean_free_object(x_1);
x_93 = !lean_is_exclusive(x_53);
if (x_93 == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; 
x_94 = lean_ctor_get(x_53, 3);
lean_dec(x_94);
x_95 = lean_ctor_get(x_53, 2);
lean_dec(x_95);
x_96 = lean_ctor_get(x_53, 1);
lean_dec(x_96);
x_97 = lean_ctor_get(x_53, 0);
lean_dec(x_97);
x_98 = 1;
lean_ctor_set(x_53, 3, x_50);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_98);
return x_53;
}
else
{
uint8_t x_99; lean_object* x_100; 
lean_dec(x_53);
x_99 = 1;
x_100 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_100, 0, x_42);
lean_ctor_set(x_100, 1, x_43);
lean_ctor_set(x_100, 2, x_44);
lean_ctor_set(x_100, 3, x_50);
lean_ctor_set_uint8(x_100, sizeof(void*)*4, x_99);
return x_100;
}
}
}
}
else
{
uint8_t x_101; 
x_101 = lean_ctor_get_uint8(x_52, sizeof(void*)*4);
if (x_101 == 0)
{
uint8_t x_102; 
x_102 = !lean_is_exclusive(x_50);
if (x_102 == 0)
{
lean_object* x_103; uint8_t x_104; 
x_103 = lean_ctor_get(x_50, 0);
lean_dec(x_103);
x_104 = !lean_is_exclusive(x_52);
if (x_104 == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; 
x_105 = lean_ctor_get(x_52, 0);
x_106 = lean_ctor_get(x_52, 1);
x_107 = lean_ctor_get(x_52, 2);
x_108 = lean_ctor_get(x_52, 3);
x_109 = 1;
lean_ctor_set(x_52, 3, x_105);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_109);
lean_ctor_set(x_50, 0, x_108);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_109);
x_110 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_107);
lean_ctor_set(x_1, 1, x_106);
lean_ctor_set(x_1, 0, x_52);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110);
return x_1;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; uint8_t x_117; 
x_111 = lean_ctor_get(x_52, 0);
x_112 = lean_ctor_get(x_52, 1);
x_113 = lean_ctor_get(x_52, 2);
x_114 = lean_ctor_get(x_52, 3);
lean_inc(x_114);
lean_inc(x_113);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_52);
x_115 = 1;
x_116 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_116, 0, x_42);
lean_ctor_set(x_116, 1, x_43);
lean_ctor_set(x_116, 2, x_44);
lean_ctor_set(x_116, 3, x_111);
lean_ctor_set_uint8(x_116, sizeof(void*)*4, x_115);
lean_ctor_set(x_50, 0, x_114);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_115);
x_117 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_116);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_117);
return x_1;
}
}
else
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; 
x_118 = lean_ctor_get(x_50, 1);
x_119 = lean_ctor_get(x_50, 2);
x_120 = lean_ctor_get(x_50, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_dec(x_50);
x_121 = lean_ctor_get(x_52, 0);
lean_inc(x_121);
x_122 = lean_ctor_get(x_52, 1);
lean_inc(x_122);
x_123 = lean_ctor_get(x_52, 2);
lean_inc(x_123);
x_124 = lean_ctor_get(x_52, 3);
lean_inc(x_124);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_125 = x_52;
} else {
 lean_dec_ref(x_52);
 x_125 = lean_box(0);
}
x_126 = 1;
if (lean_is_scalar(x_125)) {
 x_127 = lean_alloc_ctor(1, 4, 1);
} else {
 x_127 = x_125;
}
lean_ctor_set(x_127, 0, x_42);
lean_ctor_set(x_127, 1, x_43);
lean_ctor_set(x_127, 2, x_44);
lean_ctor_set(x_127, 3, x_121);
lean_ctor_set_uint8(x_127, sizeof(void*)*4, x_126);
x_128 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_128, 0, x_124);
lean_ctor_set(x_128, 1, x_118);
lean_ctor_set(x_128, 2, x_119);
lean_ctor_set(x_128, 3, x_120);
lean_ctor_set_uint8(x_128, sizeof(void*)*4, x_126);
x_129 = 0;
lean_ctor_set(x_1, 3, x_128);
lean_ctor_set(x_1, 2, x_123);
lean_ctor_set(x_1, 1, x_122);
lean_ctor_set(x_1, 0, x_127);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_129);
return x_1;
}
}
else
{
lean_object* x_130; 
x_130 = lean_ctor_get(x_50, 3);
lean_inc(x_130);
if (lean_obj_tag(x_130) == 0)
{
uint8_t x_131; 
lean_free_object(x_1);
x_131 = !lean_is_exclusive(x_52);
if (x_131 == 0)
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_132 = lean_ctor_get(x_52, 3);
lean_dec(x_132);
x_133 = lean_ctor_get(x_52, 2);
lean_dec(x_133);
x_134 = lean_ctor_get(x_52, 1);
lean_dec(x_134);
x_135 = lean_ctor_get(x_52, 0);
lean_dec(x_135);
x_136 = 1;
lean_ctor_set(x_52, 3, x_50);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_136);
return x_52;
}
else
{
uint8_t x_137; lean_object* x_138; 
lean_dec(x_52);
x_137 = 1;
x_138 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_138, 0, x_42);
lean_ctor_set(x_138, 1, x_43);
lean_ctor_set(x_138, 2, x_44);
lean_ctor_set(x_138, 3, x_50);
lean_ctor_set_uint8(x_138, sizeof(void*)*4, x_137);
return x_138;
}
}
else
{
uint8_t x_139; 
x_139 = lean_ctor_get_uint8(x_130, sizeof(void*)*4);
if (x_139 == 0)
{
uint8_t x_140; 
lean_free_object(x_1);
x_140 = !lean_is_exclusive(x_50);
if (x_140 == 0)
{
lean_object* x_141; lean_object* x_142; uint8_t x_143; 
x_141 = lean_ctor_get(x_50, 3);
lean_dec(x_141);
x_142 = lean_ctor_get(x_50, 0);
lean_dec(x_142);
x_143 = !lean_is_exclusive(x_130);
if (x_143 == 0)
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; uint8_t x_149; 
x_144 = lean_ctor_get(x_130, 0);
x_145 = lean_ctor_get(x_130, 1);
x_146 = lean_ctor_get(x_130, 2);
x_147 = lean_ctor_get(x_130, 3);
x_148 = 1;
lean_inc(x_52);
lean_ctor_set(x_130, 3, x_52);
lean_ctor_set(x_130, 2, x_44);
lean_ctor_set(x_130, 1, x_43);
lean_ctor_set(x_130, 0, x_42);
x_149 = !lean_is_exclusive(x_52);
if (x_149 == 0)
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; 
x_150 = lean_ctor_get(x_52, 3);
lean_dec(x_150);
x_151 = lean_ctor_get(x_52, 2);
lean_dec(x_151);
x_152 = lean_ctor_get(x_52, 1);
lean_dec(x_152);
x_153 = lean_ctor_get(x_52, 0);
lean_dec(x_153);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
lean_ctor_set(x_52, 3, x_147);
lean_ctor_set(x_52, 2, x_146);
lean_ctor_set(x_52, 1, x_145);
lean_ctor_set(x_52, 0, x_144);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_148);
x_154 = 0;
lean_ctor_set(x_50, 3, x_52);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_154);
return x_50;
}
else
{
lean_object* x_155; uint8_t x_156; 
lean_dec(x_52);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
x_155 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_155, 0, x_144);
lean_ctor_set(x_155, 1, x_145);
lean_ctor_set(x_155, 2, x_146);
lean_ctor_set(x_155, 3, x_147);
lean_ctor_set_uint8(x_155, sizeof(void*)*4, x_148);
x_156 = 0;
lean_ctor_set(x_50, 3, x_155);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_156);
return x_50;
}
}
else
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; 
x_157 = lean_ctor_get(x_130, 0);
x_158 = lean_ctor_get(x_130, 1);
x_159 = lean_ctor_get(x_130, 2);
x_160 = lean_ctor_get(x_130, 3);
lean_inc(x_160);
lean_inc(x_159);
lean_inc(x_158);
lean_inc(x_157);
lean_dec(x_130);
x_161 = 1;
lean_inc(x_52);
x_162 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_162, 0, x_42);
lean_ctor_set(x_162, 1, x_43);
lean_ctor_set(x_162, 2, x_44);
lean_ctor_set(x_162, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_163 = x_52;
} else {
 lean_dec_ref(x_52);
 x_163 = lean_box(0);
}
lean_ctor_set_uint8(x_162, sizeof(void*)*4, x_161);
if (lean_is_scalar(x_163)) {
 x_164 = lean_alloc_ctor(1, 4, 1);
} else {
 x_164 = x_163;
}
lean_ctor_set(x_164, 0, x_157);
lean_ctor_set(x_164, 1, x_158);
lean_ctor_set(x_164, 2, x_159);
lean_ctor_set(x_164, 3, x_160);
lean_ctor_set_uint8(x_164, sizeof(void*)*4, x_161);
x_165 = 0;
lean_ctor_set(x_50, 3, x_164);
lean_ctor_set(x_50, 0, x_162);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_165);
return x_50;
}
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; 
x_166 = lean_ctor_get(x_50, 1);
x_167 = lean_ctor_get(x_50, 2);
lean_inc(x_167);
lean_inc(x_166);
lean_dec(x_50);
x_168 = lean_ctor_get(x_130, 0);
lean_inc(x_168);
x_169 = lean_ctor_get(x_130, 1);
lean_inc(x_169);
x_170 = lean_ctor_get(x_130, 2);
lean_inc(x_170);
x_171 = lean_ctor_get(x_130, 3);
lean_inc(x_171);
if (lean_is_exclusive(x_130)) {
 lean_ctor_release(x_130, 0);
 lean_ctor_release(x_130, 1);
 lean_ctor_release(x_130, 2);
 lean_ctor_release(x_130, 3);
 x_172 = x_130;
} else {
 lean_dec_ref(x_130);
 x_172 = lean_box(0);
}
x_173 = 1;
lean_inc(x_52);
if (lean_is_scalar(x_172)) {
 x_174 = lean_alloc_ctor(1, 4, 1);
} else {
 x_174 = x_172;
}
lean_ctor_set(x_174, 0, x_42);
lean_ctor_set(x_174, 1, x_43);
lean_ctor_set(x_174, 2, x_44);
lean_ctor_set(x_174, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_175 = x_52;
} else {
 lean_dec_ref(x_52);
 x_175 = lean_box(0);
}
lean_ctor_set_uint8(x_174, sizeof(void*)*4, x_173);
if (lean_is_scalar(x_175)) {
 x_176 = lean_alloc_ctor(1, 4, 1);
} else {
 x_176 = x_175;
}
lean_ctor_set(x_176, 0, x_168);
lean_ctor_set(x_176, 1, x_169);
lean_ctor_set(x_176, 2, x_170);
lean_ctor_set(x_176, 3, x_171);
lean_ctor_set_uint8(x_176, sizeof(void*)*4, x_173);
x_177 = 0;
x_178 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_178, 0, x_174);
lean_ctor_set(x_178, 1, x_166);
lean_ctor_set(x_178, 2, x_167);
lean_ctor_set(x_178, 3, x_176);
lean_ctor_set_uint8(x_178, sizeof(void*)*4, x_177);
return x_178;
}
}
else
{
uint8_t x_179; 
x_179 = !lean_is_exclusive(x_50);
if (x_179 == 0)
{
lean_object* x_180; lean_object* x_181; uint8_t x_182; 
x_180 = lean_ctor_get(x_50, 3);
lean_dec(x_180);
x_181 = lean_ctor_get(x_50, 0);
lean_dec(x_181);
x_182 = !lean_is_exclusive(x_52);
if (x_182 == 0)
{
uint8_t x_183; 
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_139);
x_183 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_183);
return x_1;
}
else
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; 
x_184 = lean_ctor_get(x_52, 0);
x_185 = lean_ctor_get(x_52, 1);
x_186 = lean_ctor_get(x_52, 2);
x_187 = lean_ctor_get(x_52, 3);
lean_inc(x_187);
lean_inc(x_186);
lean_inc(x_185);
lean_inc(x_184);
lean_dec(x_52);
x_188 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_185);
lean_ctor_set(x_188, 2, x_186);
lean_ctor_set(x_188, 3, x_187);
lean_ctor_set_uint8(x_188, sizeof(void*)*4, x_139);
lean_ctor_set(x_50, 0, x_188);
x_189 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_189);
return x_1;
}
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; 
x_190 = lean_ctor_get(x_50, 1);
x_191 = lean_ctor_get(x_50, 2);
lean_inc(x_191);
lean_inc(x_190);
lean_dec(x_50);
x_192 = lean_ctor_get(x_52, 0);
lean_inc(x_192);
x_193 = lean_ctor_get(x_52, 1);
lean_inc(x_193);
x_194 = lean_ctor_get(x_52, 2);
lean_inc(x_194);
x_195 = lean_ctor_get(x_52, 3);
lean_inc(x_195);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_196 = x_52;
} else {
 lean_dec_ref(x_52);
 x_196 = lean_box(0);
}
if (lean_is_scalar(x_196)) {
 x_197 = lean_alloc_ctor(1, 4, 1);
} else {
 x_197 = x_196;
}
lean_ctor_set(x_197, 0, x_192);
lean_ctor_set(x_197, 1, x_193);
lean_ctor_set(x_197, 2, x_194);
lean_ctor_set(x_197, 3, x_195);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_139);
x_198 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_198, 0, x_197);
lean_ctor_set(x_198, 1, x_190);
lean_ctor_set(x_198, 2, x_191);
lean_ctor_set(x_198, 3, x_130);
lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_51);
x_199 = 1;
lean_ctor_set(x_1, 3, x_198);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_200; 
x_200 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200);
return x_1;
}
}
else
{
uint8_t x_201; lean_object* x_202; 
lean_dec(x_44);
lean_dec(x_43);
x_201 = 1;
x_202 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_202);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_201);
return x_1;
}
}
else
{
lean_object* x_203; uint8_t x_204; 
x_203 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_42, x_2, x_3);
x_204 = lean_ctor_get_uint8(x_203, sizeof(void*)*4);
if (x_204 == 0)
{
lean_object* x_205; 
x_205 = lean_ctor_get(x_203, 0);
lean_inc(x_205);
if (lean_obj_tag(x_205) == 0)
{
lean_object* x_206; 
x_206 = lean_ctor_get(x_203, 3);
lean_inc(x_206);
if (lean_obj_tag(x_206) == 0)
{
uint8_t x_207; 
x_207 = !lean_is_exclusive(x_203);
if (x_207 == 0)
{
lean_object* x_208; lean_object* x_209; uint8_t x_210; 
x_208 = lean_ctor_get(x_203, 3);
lean_dec(x_208);
x_209 = lean_ctor_get(x_203, 0);
lean_dec(x_209);
lean_ctor_set(x_203, 0, x_206);
x_210 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; 
x_211 = lean_ctor_get(x_203, 1);
x_212 = lean_ctor_get(x_203, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_203);
x_213 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_213, 0, x_206);
lean_ctor_set(x_213, 1, x_211);
lean_ctor_set(x_213, 2, x_212);
lean_ctor_set(x_213, 3, x_206);
lean_ctor_set_uint8(x_213, sizeof(void*)*4, x_204);
x_214 = 1;
lean_ctor_set(x_1, 0, x_213);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_214);
return x_1;
}
}
else
{
uint8_t x_215; 
x_215 = lean_ctor_get_uint8(x_206, sizeof(void*)*4);
if (x_215 == 0)
{
uint8_t x_216; 
x_216 = !lean_is_exclusive(x_203);
if (x_216 == 0)
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; 
x_217 = lean_ctor_get(x_203, 1);
x_218 = lean_ctor_get(x_203, 2);
x_219 = lean_ctor_get(x_203, 3);
lean_dec(x_219);
x_220 = lean_ctor_get(x_203, 0);
lean_dec(x_220);
x_221 = !lean_is_exclusive(x_206);
if (x_221 == 0)
{
lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; uint8_t x_227; 
x_222 = lean_ctor_get(x_206, 0);
x_223 = lean_ctor_get(x_206, 1);
x_224 = lean_ctor_get(x_206, 2);
x_225 = lean_ctor_get(x_206, 3);
x_226 = 1;
lean_ctor_set(x_206, 3, x_222);
lean_ctor_set(x_206, 2, x_218);
lean_ctor_set(x_206, 1, x_217);
lean_ctor_set(x_206, 0, x_205);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_226);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_225);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_226);
x_227 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_224);
lean_ctor_set(x_1, 1, x_223);
lean_ctor_set(x_1, 0, x_206);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_227);
return x_1;
}
else
{
lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; uint8_t x_234; 
x_228 = lean_ctor_get(x_206, 0);
x_229 = lean_ctor_get(x_206, 1);
x_230 = lean_ctor_get(x_206, 2);
x_231 = lean_ctor_get(x_206, 3);
lean_inc(x_231);
lean_inc(x_230);
lean_inc(x_229);
lean_inc(x_228);
lean_dec(x_206);
x_232 = 1;
x_233 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_233, 0, x_205);
lean_ctor_set(x_233, 1, x_217);
lean_ctor_set(x_233, 2, x_218);
lean_ctor_set(x_233, 3, x_228);
lean_ctor_set_uint8(x_233, sizeof(void*)*4, x_232);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_231);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_232);
x_234 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_230);
lean_ctor_set(x_1, 1, x_229);
lean_ctor_set(x_1, 0, x_233);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_234);
return x_1;
}
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; 
x_235 = lean_ctor_get(x_203, 1);
x_236 = lean_ctor_get(x_203, 2);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_203);
x_237 = lean_ctor_get(x_206, 0);
lean_inc(x_237);
x_238 = lean_ctor_get(x_206, 1);
lean_inc(x_238);
x_239 = lean_ctor_get(x_206, 2);
lean_inc(x_239);
x_240 = lean_ctor_get(x_206, 3);
lean_inc(x_240);
if (lean_is_exclusive(x_206)) {
 lean_ctor_release(x_206, 0);
 lean_ctor_release(x_206, 1);
 lean_ctor_release(x_206, 2);
 lean_ctor_release(x_206, 3);
 x_241 = x_206;
} else {
 lean_dec_ref(x_206);
 x_241 = lean_box(0);
}
x_242 = 1;
if (lean_is_scalar(x_241)) {
 x_243 = lean_alloc_ctor(1, 4, 1);
} else {
 x_243 = x_241;
}
lean_ctor_set(x_243, 0, x_205);
lean_ctor_set(x_243, 1, x_235);
lean_ctor_set(x_243, 2, x_236);
lean_ctor_set(x_243, 3, x_237);
lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_242);
x_244 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_244, 0, x_240);
lean_ctor_set(x_244, 1, x_43);
lean_ctor_set(x_244, 2, x_44);
lean_ctor_set(x_244, 3, x_45);
lean_ctor_set_uint8(x_244, sizeof(void*)*4, x_242);
x_245 = 0;
lean_ctor_set(x_1, 3, x_244);
lean_ctor_set(x_1, 2, x_239);
lean_ctor_set(x_1, 1, x_238);
lean_ctor_set(x_1, 0, x_243);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_245);
return x_1;
}
}
else
{
uint8_t x_246; 
lean_free_object(x_1);
x_246 = !lean_is_exclusive(x_206);
if (x_246 == 0)
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; 
x_247 = lean_ctor_get(x_206, 3);
lean_dec(x_247);
x_248 = lean_ctor_get(x_206, 2);
lean_dec(x_248);
x_249 = lean_ctor_get(x_206, 1);
lean_dec(x_249);
x_250 = lean_ctor_get(x_206, 0);
lean_dec(x_250);
x_251 = 1;
lean_ctor_set(x_206, 3, x_45);
lean_ctor_set(x_206, 2, x_44);
lean_ctor_set(x_206, 1, x_43);
lean_ctor_set(x_206, 0, x_203);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_251);
return x_206;
}
else
{
uint8_t x_252; lean_object* x_253; 
lean_dec(x_206);
x_252 = 1;
x_253 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_253, 0, x_203);
lean_ctor_set(x_253, 1, x_43);
lean_ctor_set(x_253, 2, x_44);
lean_ctor_set(x_253, 3, x_45);
lean_ctor_set_uint8(x_253, sizeof(void*)*4, x_252);
return x_253;
}
}
}
}
else
{
uint8_t x_254; 
x_254 = lean_ctor_get_uint8(x_205, sizeof(void*)*4);
if (x_254 == 0)
{
uint8_t x_255; 
x_255 = !lean_is_exclusive(x_203);
if (x_255 == 0)
{
lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_256 = lean_ctor_get(x_203, 1);
x_257 = lean_ctor_get(x_203, 2);
x_258 = lean_ctor_get(x_203, 3);
x_259 = lean_ctor_get(x_203, 0);
lean_dec(x_259);
x_260 = !lean_is_exclusive(x_205);
if (x_260 == 0)
{
uint8_t x_261; uint8_t x_262; 
x_261 = 1;
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_261);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_261);
x_262 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_205);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_262);
return x_1;
}
else
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_263 = lean_ctor_get(x_205, 0);
x_264 = lean_ctor_get(x_205, 1);
x_265 = lean_ctor_get(x_205, 2);
x_266 = lean_ctor_get(x_205, 3);
lean_inc(x_266);
lean_inc(x_265);
lean_inc(x_264);
lean_inc(x_263);
lean_dec(x_205);
x_267 = 1;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_263);
lean_ctor_set(x_268, 1, x_264);
lean_ctor_set(x_268, 2, x_265);
lean_ctor_set(x_268, 3, x_266);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_267);
x_269 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
else
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; 
x_270 = lean_ctor_get(x_203, 1);
x_271 = lean_ctor_get(x_203, 2);
x_272 = lean_ctor_get(x_203, 3);
lean_inc(x_272);
lean_inc(x_271);
lean_inc(x_270);
lean_dec(x_203);
x_273 = lean_ctor_get(x_205, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_205, 1);
lean_inc(x_274);
x_275 = lean_ctor_get(x_205, 2);
lean_inc(x_275);
x_276 = lean_ctor_get(x_205, 3);
lean_inc(x_276);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_277 = x_205;
} else {
 lean_dec_ref(x_205);
 x_277 = lean_box(0);
}
x_278 = 1;
if (lean_is_scalar(x_277)) {
 x_279 = lean_alloc_ctor(1, 4, 1);
} else {
 x_279 = x_277;
}
lean_ctor_set(x_279, 0, x_273);
lean_ctor_set(x_279, 1, x_274);
lean_ctor_set(x_279, 2, x_275);
lean_ctor_set(x_279, 3, x_276);
lean_ctor_set_uint8(x_279, sizeof(void*)*4, x_278);
x_280 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_280, 0, x_272);
lean_ctor_set(x_280, 1, x_43);
lean_ctor_set(x_280, 2, x_44);
lean_ctor_set(x_280, 3, x_45);
lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_278);
x_281 = 0;
lean_ctor_set(x_1, 3, x_280);
lean_ctor_set(x_1, 2, x_271);
lean_ctor_set(x_1, 1, x_270);
lean_ctor_set(x_1, 0, x_279);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_281);
return x_1;
}
}
else
{
lean_object* x_282; 
x_282 = lean_ctor_get(x_203, 3);
lean_inc(x_282);
if (lean_obj_tag(x_282) == 0)
{
uint8_t x_283; 
lean_free_object(x_1);
x_283 = !lean_is_exclusive(x_205);
if (x_283 == 0)
{
lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; 
x_284 = lean_ctor_get(x_205, 3);
lean_dec(x_284);
x_285 = lean_ctor_get(x_205, 2);
lean_dec(x_285);
x_286 = lean_ctor_get(x_205, 1);
lean_dec(x_286);
x_287 = lean_ctor_get(x_205, 0);
lean_dec(x_287);
x_288 = 1;
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_203);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_288);
return x_205;
}
else
{
uint8_t x_289; lean_object* x_290; 
lean_dec(x_205);
x_289 = 1;
x_290 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_290, 0, x_203);
lean_ctor_set(x_290, 1, x_43);
lean_ctor_set(x_290, 2, x_44);
lean_ctor_set(x_290, 3, x_45);
lean_ctor_set_uint8(x_290, sizeof(void*)*4, x_289);
return x_290;
}
}
else
{
uint8_t x_291; 
x_291 = lean_ctor_get_uint8(x_282, sizeof(void*)*4);
if (x_291 == 0)
{
uint8_t x_292; 
lean_free_object(x_1);
x_292 = !lean_is_exclusive(x_203);
if (x_292 == 0)
{
lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_293 = lean_ctor_get(x_203, 1);
x_294 = lean_ctor_get(x_203, 2);
x_295 = lean_ctor_get(x_203, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_203, 0);
lean_dec(x_296);
x_297 = !lean_is_exclusive(x_282);
if (x_297 == 0)
{
lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_298 = lean_ctor_get(x_282, 0);
x_299 = lean_ctor_get(x_282, 1);
x_300 = lean_ctor_get(x_282, 2);
x_301 = lean_ctor_get(x_282, 3);
x_302 = 1;
lean_inc(x_205);
lean_ctor_set(x_282, 3, x_298);
lean_ctor_set(x_282, 2, x_294);
lean_ctor_set(x_282, 1, x_293);
lean_ctor_set(x_282, 0, x_205);
x_303 = !lean_is_exclusive(x_205);
if (x_303 == 0)
{
lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_205, 3);
lean_dec(x_304);
x_305 = lean_ctor_get(x_205, 2);
lean_dec(x_305);
x_306 = lean_ctor_get(x_205, 1);
lean_dec(x_306);
x_307 = lean_ctor_get(x_205, 0);
lean_dec(x_307);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_301);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_302);
x_308 = 0;
lean_ctor_set(x_203, 3, x_205);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_308);
return x_203;
}
else
{
lean_object* x_309; uint8_t x_310; 
lean_dec(x_205);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
x_309 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_309, 0, x_301);
lean_ctor_set(x_309, 1, x_43);
lean_ctor_set(x_309, 2, x_44);
lean_ctor_set(x_309, 3, x_45);
lean_ctor_set_uint8(x_309, sizeof(void*)*4, x_302);
x_310 = 0;
lean_ctor_set(x_203, 3, x_309);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_310);
return x_203;
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_282, 0);
x_312 = lean_ctor_get(x_282, 1);
x_313 = lean_ctor_get(x_282, 2);
x_314 = lean_ctor_get(x_282, 3);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_282);
x_315 = 1;
lean_inc(x_205);
x_316 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_316, 0, x_205);
lean_ctor_set(x_316, 1, x_293);
lean_ctor_set(x_316, 2, x_294);
lean_ctor_set(x_316, 3, x_311);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_317 = x_205;
} else {
 lean_dec_ref(x_205);
 x_317 = lean_box(0);
}
lean_ctor_set_uint8(x_316, sizeof(void*)*4, x_315);
if (lean_is_scalar(x_317)) {
 x_318 = lean_alloc_ctor(1, 4, 1);
} else {
 x_318 = x_317;
}
lean_ctor_set(x_318, 0, x_314);
lean_ctor_set(x_318, 1, x_43);
lean_ctor_set(x_318, 2, x_44);
lean_ctor_set(x_318, 3, x_45);
lean_ctor_set_uint8(x_318, sizeof(void*)*4, x_315);
x_319 = 0;
lean_ctor_set(x_203, 3, x_318);
lean_ctor_set(x_203, 2, x_313);
lean_ctor_set(x_203, 1, x_312);
lean_ctor_set(x_203, 0, x_316);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_319);
return x_203;
}
}
else
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; 
x_320 = lean_ctor_get(x_203, 1);
x_321 = lean_ctor_get(x_203, 2);
lean_inc(x_321);
lean_inc(x_320);
lean_dec(x_203);
x_322 = lean_ctor_get(x_282, 0);
lean_inc(x_322);
x_323 = lean_ctor_get(x_282, 1);
lean_inc(x_323);
x_324 = lean_ctor_get(x_282, 2);
lean_inc(x_324);
x_325 = lean_ctor_get(x_282, 3);
lean_inc(x_325);
if (lean_is_exclusive(x_282)) {
 lean_ctor_release(x_282, 0);
 lean_ctor_release(x_282, 1);
 lean_ctor_release(x_282, 2);
 lean_ctor_release(x_282, 3);
 x_326 = x_282;
} else {
 lean_dec_ref(x_282);
 x_326 = lean_box(0);
}
x_327 = 1;
lean_inc(x_205);
if (lean_is_scalar(x_326)) {
 x_328 = lean_alloc_ctor(1, 4, 1);
} else {
 x_328 = x_326;
}
lean_ctor_set(x_328, 0, x_205);
lean_ctor_set(x_328, 1, x_320);
lean_ctor_set(x_328, 2, x_321);
lean_ctor_set(x_328, 3, x_322);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_329 = x_205;
} else {
 lean_dec_ref(x_205);
 x_329 = lean_box(0);
}
lean_ctor_set_uint8(x_328, sizeof(void*)*4, x_327);
if (lean_is_scalar(x_329)) {
 x_330 = lean_alloc_ctor(1, 4, 1);
} else {
 x_330 = x_329;
}
lean_ctor_set(x_330, 0, x_325);
lean_ctor_set(x_330, 1, x_43);
lean_ctor_set(x_330, 2, x_44);
lean_ctor_set(x_330, 3, x_45);
lean_ctor_set_uint8(x_330, sizeof(void*)*4, x_327);
x_331 = 0;
x_332 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_332, 0, x_328);
lean_ctor_set(x_332, 1, x_323);
lean_ctor_set(x_332, 2, x_324);
lean_ctor_set(x_332, 3, x_330);
lean_ctor_set_uint8(x_332, sizeof(void*)*4, x_331);
return x_332;
}
}
else
{
uint8_t x_333; 
x_333 = !lean_is_exclusive(x_203);
if (x_333 == 0)
{
lean_object* x_334; lean_object* x_335; uint8_t x_336; 
x_334 = lean_ctor_get(x_203, 3);
lean_dec(x_334);
x_335 = lean_ctor_get(x_203, 0);
lean_dec(x_335);
x_336 = !lean_is_exclusive(x_205);
if (x_336 == 0)
{
uint8_t x_337; 
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_291);
x_337 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_337);
return x_1;
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; 
x_338 = lean_ctor_get(x_205, 0);
x_339 = lean_ctor_get(x_205, 1);
x_340 = lean_ctor_get(x_205, 2);
x_341 = lean_ctor_get(x_205, 3);
lean_inc(x_341);
lean_inc(x_340);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_205);
x_342 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_342, 0, x_338);
lean_ctor_set(x_342, 1, x_339);
lean_ctor_set(x_342, 2, x_340);
lean_ctor_set(x_342, 3, x_341);
lean_ctor_set_uint8(x_342, sizeof(void*)*4, x_291);
lean_ctor_set(x_203, 0, x_342);
x_343 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343);
return x_1;
}
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; 
x_344 = lean_ctor_get(x_203, 1);
x_345 = lean_ctor_get(x_203, 2);
lean_inc(x_345);
lean_inc(x_344);
lean_dec(x_203);
x_346 = lean_ctor_get(x_205, 0);
lean_inc(x_346);
x_347 = lean_ctor_get(x_205, 1);
lean_inc(x_347);
x_348 = lean_ctor_get(x_205, 2);
lean_inc(x_348);
x_349 = lean_ctor_get(x_205, 3);
lean_inc(x_349);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_350 = x_205;
} else {
 lean_dec_ref(x_205);
 x_350 = lean_box(0);
}
if (lean_is_scalar(x_350)) {
 x_351 = lean_alloc_ctor(1, 4, 1);
} else {
 x_351 = x_350;
}
lean_ctor_set(x_351, 0, x_346);
lean_ctor_set(x_351, 1, x_347);
lean_ctor_set(x_351, 2, x_348);
lean_ctor_set(x_351, 3, x_349);
lean_ctor_set_uint8(x_351, sizeof(void*)*4, x_291);
x_352 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_344);
lean_ctor_set(x_352, 2, x_345);
lean_ctor_set(x_352, 3, x_282);
lean_ctor_set_uint8(x_352, sizeof(void*)*4, x_204);
x_353 = 1;
lean_ctor_set(x_1, 0, x_352);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_353);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_354; 
x_354 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_354);
return x_1;
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint64_t x_359; uint8_t x_360; 
x_355 = lean_ctor_get(x_1, 0);
x_356 = lean_ctor_get(x_1, 1);
x_357 = lean_ctor_get(x_1, 2);
x_358 = lean_ctor_get(x_1, 3);
lean_inc(x_358);
lean_inc(x_357);
lean_inc(x_356);
lean_inc(x_355);
lean_dec(x_1);
x_359 = lean_unbox_uint64(x_356);
x_360 = lean_uint64_dec_lt(x_2, x_359);
if (x_360 == 0)
{
uint64_t x_361; uint8_t x_362; 
x_361 = lean_unbox_uint64(x_356);
x_362 = lean_uint64_dec_eq(x_2, x_361);
if (x_362 == 0)
{
lean_object* x_363; uint8_t x_364; 
x_363 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_358, x_2, x_3);
x_364 = lean_ctor_get_uint8(x_363, sizeof(void*)*4);
if (x_364 == 0)
{
lean_object* x_365; 
x_365 = lean_ctor_get(x_363, 0);
lean_inc(x_365);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_366; 
x_366 = lean_ctor_get(x_363, 3);
lean_inc(x_366);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; 
x_367 = lean_ctor_get(x_363, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_363, 2);
lean_inc(x_368);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_369 = x_363;
} else {
 lean_dec_ref(x_363);
 x_369 = lean_box(0);
}
if (lean_is_scalar(x_369)) {
 x_370 = lean_alloc_ctor(1, 4, 1);
} else {
 x_370 = x_369;
}
lean_ctor_set(x_370, 0, x_366);
lean_ctor_set(x_370, 1, x_367);
lean_ctor_set(x_370, 2, x_368);
lean_ctor_set(x_370, 3, x_366);
lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_364);
x_371 = 1;
x_372 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_372, 0, x_355);
lean_ctor_set(x_372, 1, x_356);
lean_ctor_set(x_372, 2, x_357);
lean_ctor_set(x_372, 3, x_370);
lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_371);
return x_372;
}
else
{
uint8_t x_373; 
x_373 = lean_ctor_get_uint8(x_366, sizeof(void*)*4);
if (x_373 == 0)
{
lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; lean_object* x_383; lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_374 = lean_ctor_get(x_363, 1);
lean_inc(x_374);
x_375 = lean_ctor_get(x_363, 2);
lean_inc(x_375);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_376 = x_363;
} else {
 lean_dec_ref(x_363);
 x_376 = lean_box(0);
}
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_ctor_get(x_366, 1);
lean_inc(x_378);
x_379 = lean_ctor_get(x_366, 2);
lean_inc(x_379);
x_380 = lean_ctor_get(x_366, 3);
lean_inc(x_380);
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_381 = x_366;
} else {
 lean_dec_ref(x_366);
 x_381 = lean_box(0);
}
x_382 = 1;
if (lean_is_scalar(x_381)) {
 x_383 = lean_alloc_ctor(1, 4, 1);
} else {
 x_383 = x_381;
}
lean_ctor_set(x_383, 0, x_355);
lean_ctor_set(x_383, 1, x_356);
lean_ctor_set(x_383, 2, x_357);
lean_ctor_set(x_383, 3, x_365);
lean_ctor_set_uint8(x_383, sizeof(void*)*4, x_382);
if (lean_is_scalar(x_376)) {
 x_384 = lean_alloc_ctor(1, 4, 1);
} else {
 x_384 = x_376;
}
lean_ctor_set(x_384, 0, x_377);
lean_ctor_set(x_384, 1, x_378);
lean_ctor_set(x_384, 2, x_379);
lean_ctor_set(x_384, 3, x_380);
lean_ctor_set_uint8(x_384, sizeof(void*)*4, x_382);
x_385 = 0;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_383);
lean_ctor_set(x_386, 1, x_374);
lean_ctor_set(x_386, 2, x_375);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; uint8_t x_388; lean_object* x_389; 
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_387 = x_366;
} else {
 lean_dec_ref(x_366);
 x_387 = lean_box(0);
}
x_388 = 1;
if (lean_is_scalar(x_387)) {
 x_389 = lean_alloc_ctor(1, 4, 1);
} else {
 x_389 = x_387;
}
lean_ctor_set(x_389, 0, x_355);
lean_ctor_set(x_389, 1, x_356);
lean_ctor_set(x_389, 2, x_357);
lean_ctor_set(x_389, 3, x_363);
lean_ctor_set_uint8(x_389, sizeof(void*)*4, x_388);
return x_389;
}
}
}
else
{
uint8_t x_390; 
x_390 = lean_ctor_get_uint8(x_365, sizeof(void*)*4);
if (x_390 == 0)
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; lean_object* x_404; 
x_391 = lean_ctor_get(x_363, 1);
lean_inc(x_391);
x_392 = lean_ctor_get(x_363, 2);
lean_inc(x_392);
x_393 = lean_ctor_get(x_363, 3);
lean_inc(x_393);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_394 = x_363;
} else {
 lean_dec_ref(x_363);
 x_394 = lean_box(0);
}
x_395 = lean_ctor_get(x_365, 0);
lean_inc(x_395);
x_396 = lean_ctor_get(x_365, 1);
lean_inc(x_396);
x_397 = lean_ctor_get(x_365, 2);
lean_inc(x_397);
x_398 = lean_ctor_get(x_365, 3);
lean_inc(x_398);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_399 = x_365;
} else {
 lean_dec_ref(x_365);
 x_399 = lean_box(0);
}
x_400 = 1;
if (lean_is_scalar(x_399)) {
 x_401 = lean_alloc_ctor(1, 4, 1);
} else {
 x_401 = x_399;
}
lean_ctor_set(x_401, 0, x_355);
lean_ctor_set(x_401, 1, x_356);
lean_ctor_set(x_401, 2, x_357);
lean_ctor_set(x_401, 3, x_395);
lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400);
if (lean_is_scalar(x_394)) {
 x_402 = lean_alloc_ctor(1, 4, 1);
} else {
 x_402 = x_394;
}
lean_ctor_set(x_402, 0, x_398);
lean_ctor_set(x_402, 1, x_391);
lean_ctor_set(x_402, 2, x_392);
lean_ctor_set(x_402, 3, x_393);
lean_ctor_set_uint8(x_402, sizeof(void*)*4, x_400);
x_403 = 0;
x_404 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_404, 0, x_401);
lean_ctor_set(x_404, 1, x_396);
lean_ctor_set(x_404, 2, x_397);
lean_ctor_set(x_404, 3, x_402);
lean_ctor_set_uint8(x_404, sizeof(void*)*4, x_403);
return x_404;
}
else
{
lean_object* x_405; 
x_405 = lean_ctor_get(x_363, 3);
lean_inc(x_405);
if (lean_obj_tag(x_405) == 0)
{
lean_object* x_406; uint8_t x_407; lean_object* x_408; 
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_406 = x_365;
} else {
 lean_dec_ref(x_365);
 x_406 = lean_box(0);
}
x_407 = 1;
if (lean_is_scalar(x_406)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_406;
}
lean_ctor_set(x_408, 0, x_355);
lean_ctor_set(x_408, 1, x_356);
lean_ctor_set(x_408, 2, x_357);
lean_ctor_set(x_408, 3, x_363);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_407);
return x_408;
}
else
{
uint8_t x_409; 
x_409 = lean_ctor_get_uint8(x_405, sizeof(void*)*4);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; 
x_410 = lean_ctor_get(x_363, 1);
lean_inc(x_410);
x_411 = lean_ctor_get(x_363, 2);
lean_inc(x_411);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_412 = x_363;
} else {
 lean_dec_ref(x_363);
 x_412 = lean_box(0);
}
x_413 = lean_ctor_get(x_405, 0);
lean_inc(x_413);
x_414 = lean_ctor_get(x_405, 1);
lean_inc(x_414);
x_415 = lean_ctor_get(x_405, 2);
lean_inc(x_415);
x_416 = lean_ctor_get(x_405, 3);
lean_inc(x_416);
if (lean_is_exclusive(x_405)) {
 lean_ctor_release(x_405, 0);
 lean_ctor_release(x_405, 1);
 lean_ctor_release(x_405, 2);
 lean_ctor_release(x_405, 3);
 x_417 = x_405;
} else {
 lean_dec_ref(x_405);
 x_417 = lean_box(0);
}
x_418 = 1;
lean_inc(x_365);
if (lean_is_scalar(x_417)) {
 x_419 = lean_alloc_ctor(1, 4, 1);
} else {
 x_419 = x_417;
}
lean_ctor_set(x_419, 0, x_355);
lean_ctor_set(x_419, 1, x_356);
lean_ctor_set(x_419, 2, x_357);
lean_ctor_set(x_419, 3, x_365);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_420 = x_365;
} else {
 lean_dec_ref(x_365);
 x_420 = lean_box(0);
}
lean_ctor_set_uint8(x_419, sizeof(void*)*4, x_418);
if (lean_is_scalar(x_420)) {
 x_421 = lean_alloc_ctor(1, 4, 1);
} else {
 x_421 = x_420;
}
lean_ctor_set(x_421, 0, x_413);
lean_ctor_set(x_421, 1, x_414);
lean_ctor_set(x_421, 2, x_415);
lean_ctor_set(x_421, 3, x_416);
lean_ctor_set_uint8(x_421, sizeof(void*)*4, x_418);
x_422 = 0;
if (lean_is_scalar(x_412)) {
 x_423 = lean_alloc_ctor(1, 4, 1);
} else {
 x_423 = x_412;
}
lean_ctor_set(x_423, 0, x_419);
lean_ctor_set(x_423, 1, x_410);
lean_ctor_set(x_423, 2, x_411);
lean_ctor_set(x_423, 3, x_421);
lean_ctor_set_uint8(x_423, sizeof(void*)*4, x_422);
return x_423;
}
else
{
lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; 
x_424 = lean_ctor_get(x_363, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_363, 2);
lean_inc(x_425);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_426 = x_363;
} else {
 lean_dec_ref(x_363);
 x_426 = lean_box(0);
}
x_427 = lean_ctor_get(x_365, 0);
lean_inc(x_427);
x_428 = lean_ctor_get(x_365, 1);
lean_inc(x_428);
x_429 = lean_ctor_get(x_365, 2);
lean_inc(x_429);
x_430 = lean_ctor_get(x_365, 3);
lean_inc(x_430);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_431 = x_365;
} else {
 lean_dec_ref(x_365);
 x_431 = lean_box(0);
}
if (lean_is_scalar(x_431)) {
 x_432 = lean_alloc_ctor(1, 4, 1);
} else {
 x_432 = x_431;
}
lean_ctor_set(x_432, 0, x_427);
lean_ctor_set(x_432, 1, x_428);
lean_ctor_set(x_432, 2, x_429);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_409);
if (lean_is_scalar(x_426)) {
 x_433 = lean_alloc_ctor(1, 4, 1);
} else {
 x_433 = x_426;
}
lean_ctor_set(x_433, 0, x_432);
lean_ctor_set(x_433, 1, x_424);
lean_ctor_set(x_433, 2, x_425);
lean_ctor_set(x_433, 3, x_405);
lean_ctor_set_uint8(x_433, sizeof(void*)*4, x_364);
x_434 = 1;
x_435 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_435, 0, x_355);
lean_ctor_set(x_435, 1, x_356);
lean_ctor_set(x_435, 2, x_357);
lean_ctor_set(x_435, 3, x_433);
lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434);
return x_435;
}
}
}
}
}
else
{
uint8_t x_436; lean_object* x_437; 
x_436 = 1;
x_437 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_437, 0, x_355);
lean_ctor_set(x_437, 1, x_356);
lean_ctor_set(x_437, 2, x_357);
lean_ctor_set(x_437, 3, x_363);
lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_436);
return x_437;
}
}
else
{
uint8_t x_438; lean_object* x_439; lean_object* x_440; 
lean_dec(x_357);
lean_dec(x_356);
x_438 = 1;
x_439 = lean_box_uint64(x_2);
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_355);
lean_ctor_set(x_440, 1, x_439);
lean_ctor_set(x_440, 2, x_3);
lean_ctor_set(x_440, 3, x_358);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_438);
return x_440;
}
}
else
{
lean_object* x_441; uint8_t x_442; 
x_441 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_355, x_2, x_3);
x_442 = lean_ctor_get_uint8(x_441, sizeof(void*)*4);
if (x_442 == 0)
{
lean_object* x_443; 
x_443 = lean_ctor_get(x_441, 0);
lean_inc(x_443);
if (lean_obj_tag(x_443) == 0)
{
lean_object* x_444; 
x_444 = lean_ctor_get(x_441, 3);
lean_inc(x_444);
if (lean_obj_tag(x_444) == 0)
{
lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; 
x_445 = lean_ctor_get(x_441, 1);
lean_inc(x_445);
x_446 = lean_ctor_get(x_441, 2);
lean_inc(x_446);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_447 = x_441;
} else {
 lean_dec_ref(x_441);
 x_447 = lean_box(0);
}
if (lean_is_scalar(x_447)) {
 x_448 = lean_alloc_ctor(1, 4, 1);
} else {
 x_448 = x_447;
}
lean_ctor_set(x_448, 0, x_444);
lean_ctor_set(x_448, 1, x_445);
lean_ctor_set(x_448, 2, x_446);
lean_ctor_set(x_448, 3, x_444);
lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_442);
x_449 = 1;
x_450 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_450, 0, x_448);
lean_ctor_set(x_450, 1, x_356);
lean_ctor_set(x_450, 2, x_357);
lean_ctor_set(x_450, 3, x_358);
lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449);
return x_450;
}
else
{
uint8_t x_451; 
x_451 = lean_ctor_get_uint8(x_444, sizeof(void*)*4);
if (x_451 == 0)
{
lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; lean_object* x_464; 
x_452 = lean_ctor_get(x_441, 1);
lean_inc(x_452);
x_453 = lean_ctor_get(x_441, 2);
lean_inc(x_453);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_454 = x_441;
} else {
 lean_dec_ref(x_441);
 x_454 = lean_box(0);
}
x_455 = lean_ctor_get(x_444, 0);
lean_inc(x_455);
x_456 = lean_ctor_get(x_444, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_444, 2);
lean_inc(x_457);
x_458 = lean_ctor_get(x_444, 3);
lean_inc(x_458);
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_459 = x_444;
} else {
 lean_dec_ref(x_444);
 x_459 = lean_box(0);
}
x_460 = 1;
if (lean_is_scalar(x_459)) {
 x_461 = lean_alloc_ctor(1, 4, 1);
} else {
 x_461 = x_459;
}
lean_ctor_set(x_461, 0, x_443);
lean_ctor_set(x_461, 1, x_452);
lean_ctor_set(x_461, 2, x_453);
lean_ctor_set(x_461, 3, x_455);
lean_ctor_set_uint8(x_461, sizeof(void*)*4, x_460);
if (lean_is_scalar(x_454)) {
 x_462 = lean_alloc_ctor(1, 4, 1);
} else {
 x_462 = x_454;
}
lean_ctor_set(x_462, 0, x_458);
lean_ctor_set(x_462, 1, x_356);
lean_ctor_set(x_462, 2, x_357);
lean_ctor_set(x_462, 3, x_358);
lean_ctor_set_uint8(x_462, sizeof(void*)*4, x_460);
x_463 = 0;
x_464 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_464, 0, x_461);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_463);
return x_464;
}
else
{
lean_object* x_465; uint8_t x_466; lean_object* x_467; 
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_465 = x_444;
} else {
 lean_dec_ref(x_444);
 x_465 = lean_box(0);
}
x_466 = 1;
if (lean_is_scalar(x_465)) {
 x_467 = lean_alloc_ctor(1, 4, 1);
} else {
 x_467 = x_465;
}
lean_ctor_set(x_467, 0, x_441);
lean_ctor_set(x_467, 1, x_356);
lean_ctor_set(x_467, 2, x_357);
lean_ctor_set(x_467, 3, x_358);
lean_ctor_set_uint8(x_467, sizeof(void*)*4, x_466);
return x_467;
}
}
}
else
{
uint8_t x_468; 
x_468 = lean_ctor_get_uint8(x_443, sizeof(void*)*4);
if (x_468 == 0)
{
lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; 
x_469 = lean_ctor_get(x_441, 1);
lean_inc(x_469);
x_470 = lean_ctor_get(x_441, 2);
lean_inc(x_470);
x_471 = lean_ctor_get(x_441, 3);
lean_inc(x_471);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_472 = x_441;
} else {
 lean_dec_ref(x_441);
 x_472 = lean_box(0);
}
x_473 = lean_ctor_get(x_443, 0);
lean_inc(x_473);
x_474 = lean_ctor_get(x_443, 1);
lean_inc(x_474);
x_475 = lean_ctor_get(x_443, 2);
lean_inc(x_475);
x_476 = lean_ctor_get(x_443, 3);
lean_inc(x_476);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_477 = x_443;
} else {
 lean_dec_ref(x_443);
 x_477 = lean_box(0);
}
x_478 = 1;
if (lean_is_scalar(x_477)) {
 x_479 = lean_alloc_ctor(1, 4, 1);
} else {
 x_479 = x_477;
}
lean_ctor_set(x_479, 0, x_473);
lean_ctor_set(x_479, 1, x_474);
lean_ctor_set(x_479, 2, x_475);
lean_ctor_set(x_479, 3, x_476);
lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478);
if (lean_is_scalar(x_472)) {
 x_480 = lean_alloc_ctor(1, 4, 1);
} else {
 x_480 = x_472;
}
lean_ctor_set(x_480, 0, x_471);
lean_ctor_set(x_480, 1, x_356);
lean_ctor_set(x_480, 2, x_357);
lean_ctor_set(x_480, 3, x_358);
lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478);
x_481 = 0;
x_482 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_482, 0, x_479);
lean_ctor_set(x_482, 1, x_469);
lean_ctor_set(x_482, 2, x_470);
lean_ctor_set(x_482, 3, x_480);
lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481);
return x_482;
}
else
{
lean_object* x_483; 
x_483 = lean_ctor_get(x_441, 3);
lean_inc(x_483);
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_484; uint8_t x_485; lean_object* x_486; 
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_484 = x_443;
} else {
 lean_dec_ref(x_443);
 x_484 = lean_box(0);
}
x_485 = 1;
if (lean_is_scalar(x_484)) {
 x_486 = lean_alloc_ctor(1, 4, 1);
} else {
 x_486 = x_484;
}
lean_ctor_set(x_486, 0, x_441);
lean_ctor_set(x_486, 1, x_356);
lean_ctor_set(x_486, 2, x_357);
lean_ctor_set(x_486, 3, x_358);
lean_ctor_set_uint8(x_486, sizeof(void*)*4, x_485);
return x_486;
}
else
{
uint8_t x_487; 
x_487 = lean_ctor_get_uint8(x_483, sizeof(void*)*4);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; 
x_488 = lean_ctor_get(x_441, 1);
lean_inc(x_488);
x_489 = lean_ctor_get(x_441, 2);
lean_inc(x_489);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_490 = x_441;
} else {
 lean_dec_ref(x_441);
 x_490 = lean_box(0);
}
x_491 = lean_ctor_get(x_483, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_483, 1);
lean_inc(x_492);
x_493 = lean_ctor_get(x_483, 2);
lean_inc(x_493);
x_494 = lean_ctor_get(x_483, 3);
lean_inc(x_494);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 lean_ctor_release(x_483, 1);
 lean_ctor_release(x_483, 2);
 lean_ctor_release(x_483, 3);
 x_495 = x_483;
} else {
 lean_dec_ref(x_483);
 x_495 = lean_box(0);
}
x_496 = 1;
lean_inc(x_443);
if (lean_is_scalar(x_495)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_495;
}
lean_ctor_set(x_497, 0, x_443);
lean_ctor_set(x_497, 1, x_488);
lean_ctor_set(x_497, 2, x_489);
lean_ctor_set(x_497, 3, x_491);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_498 = x_443;
} else {
 lean_dec_ref(x_443);
 x_498 = lean_box(0);
}
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_496);
if (lean_is_scalar(x_498)) {
 x_499 = lean_alloc_ctor(1, 4, 1);
} else {
 x_499 = x_498;
}
lean_ctor_set(x_499, 0, x_494);
lean_ctor_set(x_499, 1, x_356);
lean_ctor_set(x_499, 2, x_357);
lean_ctor_set(x_499, 3, x_358);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_496);
x_500 = 0;
if (lean_is_scalar(x_490)) {
 x_501 = lean_alloc_ctor(1, 4, 1);
} else {
 x_501 = x_490;
}
lean_ctor_set(x_501, 0, x_497);
lean_ctor_set(x_501, 1, x_492);
lean_ctor_set(x_501, 2, x_493);
lean_ctor_set(x_501, 3, x_499);
lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500);
return x_501;
}
else
{
lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; uint8_t x_512; lean_object* x_513; 
x_502 = lean_ctor_get(x_441, 1);
lean_inc(x_502);
x_503 = lean_ctor_get(x_441, 2);
lean_inc(x_503);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_504 = x_441;
} else {
 lean_dec_ref(x_441);
 x_504 = lean_box(0);
}
x_505 = lean_ctor_get(x_443, 0);
lean_inc(x_505);
x_506 = lean_ctor_get(x_443, 1);
lean_inc(x_506);
x_507 = lean_ctor_get(x_443, 2);
lean_inc(x_507);
x_508 = lean_ctor_get(x_443, 3);
lean_inc(x_508);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_509 = x_443;
} else {
 lean_dec_ref(x_443);
 x_509 = lean_box(0);
}
if (lean_is_scalar(x_509)) {
 x_510 = lean_alloc_ctor(1, 4, 1);
} else {
 x_510 = x_509;
}
lean_ctor_set(x_510, 0, x_505);
lean_ctor_set(x_510, 1, x_506);
lean_ctor_set(x_510, 2, x_507);
lean_ctor_set(x_510, 3, x_508);
lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_487);
if (lean_is_scalar(x_504)) {
 x_511 = lean_alloc_ctor(1, 4, 1);
} else {
 x_511 = x_504;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_502);
lean_ctor_set(x_511, 2, x_503);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set_uint8(x_511, sizeof(void*)*4, x_442);
x_512 = 1;
x_513 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_513, 0, x_511);
lean_ctor_set(x_513, 1, x_356);
lean_ctor_set(x_513, 2, x_357);
lean_ctor_set(x_513, 3, x_358);
lean_ctor_set_uint8(x_513, sizeof(void*)*4, x_512);
return x_513;
}
}
}
}
}
else
{
uint8_t x_514; lean_object* x_515; 
x_514 = 1;
x_515 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_515, 0, x_441);
lean_ctor_set(x_515, 1, x_356);
lean_ctor_set(x_515, 2, x_357);
lean_ctor_set(x_515, 3, x_358);
lean_ctor_set_uint8(x_515, sizeof(void*)*4, x_514);
return x_515;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Lean_RBNode_isRed___rarg(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_1, x_2, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_1, x_2, x_3);
x_7 = l_Lean_RBNode_setBlack___rarg(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; 
x_6 = lean_usize_dec_eq(x_3, x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; uint64_t x_12; lean_object* x_13; 
x_7 = lean_array_uget(x_2, x_3);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = 1;
x_11 = lean_usize_add(x_3, x_10);
x_12 = lean_unbox_uint64(x_8);
lean_dec(x_8);
x_13 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(x_5, x_12, x_9);
x_3 = x_11;
x_5 = x_13;
goto _start;
}
else
{
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; uint64_t x_11; lean_object* x_12; 
x_6 = lean_array_uget(x_1, x_2);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_unbox_uint64(x_7);
lean_dec(x_7);
x_12 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(x_4, x_11, x_8);
x_2 = x_10;
x_4 = x_12;
goto _start;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; size_t x_10; size_t x_11; 
x_6 = lean_array_uget(x_1, x_2);
x_7 = lean_array_get_size(x_6);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_nat_dec_lt(x_8, x_7);
x_10 = 1;
x_11 = lean_usize_add(x_2, x_10);
if (x_9 == 0)
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = x_11;
goto _start;
}
else
{
uint8_t x_13; 
x_13 = lean_nat_dec_le(x_7, x_7);
if (x_13 == 0)
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = x_11;
goto _start;
}
else
{
size_t x_15; size_t x_16; lean_object* x_17; 
x_15 = 0;
x_16 = lean_usize_of_nat(x_7);
lean_dec(x_7);
x_17 = l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4(x_6, x_15, x_16, x_4);
lean_dec(x_6);
x_2 = x_11;
x_4 = x_17;
goto _start;
}
}
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint64_t x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_unbox_uint64(x_3);
lean_dec(x_3);
x_6 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(x_1, x_5, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_box(0);
x_3 = lean_array_get_size(x_1);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_lt(x_4, x_3);
if (x_5 == 0)
{
lean_dec(x_3);
return x_2;
}
else
{
uint8_t x_6; 
x_6 = lean_nat_dec_le(x_3, x_3);
if (x_6 == 0)
{
lean_dec(x_3);
return x_2;
}
else
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = 0;
x_8 = lean_usize_of_nat(x_3);
lean_dec(x_3);
x_9 = l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5(x_1, x_7, x_8, x_2);
return x_9;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("moduleRegistry", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(lean_list_to_array), 2, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__1), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5;
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6;
x_3 = l_Lean_registerSimplePersistentEnvExtension___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__2(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__1(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
size_t x_6; size_t x_7; lean_object* x_8; 
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3(x_1, x_2, x_6, x_7, x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__3___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__4(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____spec__5(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____lambda__2(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(lean_object* x_1, uint64_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint64(x_5);
x_9 = lean_uint64_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint64_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint64(x_5);
lean_dec(x_5);
x_11 = lean_uint64_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
static lean_object* _init_l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_warningAsError;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_4, 2);
lean_inc(x_7);
x_8 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1;
x_9 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_7, x_8);
lean_dec(x_7);
if (x_9 == 0)
{
uint8_t x_10; lean_object* x_11; 
x_10 = 1;
x_11 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__5(x_1, x_10, x_2, x_3, x_4, x_5, x_6);
return x_11;
}
else
{
uint8_t x_12; lean_object* x_13; 
x_12 = 2;
x_13 = l_Lean_log___at___private_Lean_Meta_Instances_0__Lean_Meta_computeSynthOrder___spec__5(x_1, x_12, x_2, x_3, x_4, x_5, x_6);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(lean_object* x_1, uint64_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint64(x_5);
x_9 = lean_uint64_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint64_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint64(x_5);
lean_dec(x_5);
x_11 = lean_uint64_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("addBuiltinModule", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_10 = lean_st_ref_get(x_8, x_9);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_12 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2;
x_13 = l_Lean_Expr_const___override(x_12, x_1);
lean_inc(x_2);
x_14 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux(x_2);
x_15 = l_Lean_mkAppB(x_13, x_14, x_3);
x_16 = l_Lean_declareBuiltin(x_2, x_15, x_7, x_8, x_11);
return x_16;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_moduleRegistry;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("A widget module with the same hash(JS source code) was already registered at ", 77, 77);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; 
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_14 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_4, x_13, x_5);
x_15 = lean_ctor_get(x_6, 1);
lean_inc(x_15);
lean_dec(x_6);
x_16 = lean_unbox_uint64(x_15);
lean_dec(x_15);
x_17 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_14, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_box(0);
x_19 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(x_1, x_2, x_3, x_18, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_10);
return x_19;
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_17, 0);
lean_inc(x_20);
lean_dec(x_17);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_22 = lean_ctor_get(x_20, 0);
x_23 = lean_ctor_get(x_20, 1);
lean_dec(x_23);
lean_inc(x_1);
x_24 = l_Lean_Expr_const___override(x_22, x_1);
x_25 = l_Lean_MessageData_ofExpr(x_24);
x_26 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3;
lean_ctor_set_tag(x_20, 7);
lean_ctor_set(x_20, 1, x_25);
lean_ctor_set(x_20, 0, x_26);
x_27 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5;
x_28 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_28, 0, x_20);
lean_ctor_set(x_28, 1, x_27);
lean_inc(x_10);
x_29 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_28, x_8, x_9, x_10, x_11, x_12);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(x_1, x_2, x_3, x_30, x_8, x_9, x_10, x_11, x_31);
lean_dec(x_10);
lean_dec(x_30);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_33 = lean_ctor_get(x_20, 0);
lean_inc(x_33);
lean_dec(x_20);
lean_inc(x_1);
x_34 = l_Lean_Expr_const___override(x_33, x_1);
x_35 = l_Lean_MessageData_ofExpr(x_34);
x_36 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3;
x_37 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_35);
x_38 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5;
x_39 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
lean_inc(x_10);
x_40 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_39, x_8, x_9, x_10, x_11, x_12);
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(x_1, x_2, x_3, x_41, x_8, x_9, x_10, x_11, x_42);
lean_dec(x_10);
lean_dec(x_41);
return x_43;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToModule", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toModule", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1;
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_9 = lean_box(0);
lean_inc(x_1);
x_10 = l_Lean_Expr_const___override(x_1, x_9);
x_11 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4;
lean_inc(x_10);
x_12 = lean_array_push(x_11, x_10);
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_14 = l_Lean_Meta_mkAppM(x_13, x_12, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_17 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(x_15, x_4, x_5, x_6, x_7, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = lean_st_ref_get(x_7, x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
lean_dec(x_21);
x_24 = lean_box(0);
x_25 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2(x_9, x_1, x_10, x_2, x_23, x_18, x_24, x_4, x_5, x_6, x_7, x_22);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_23);
return x_25;
}
else
{
uint8_t x_26; 
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_17, 0);
x_28 = lean_ctor_get(x_17, 1);
lean_inc(x_28);
lean_inc(x_27);
lean_dec(x_17);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
return x_29;
}
}
}
else
{
uint8_t x_30; 
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_30 = !lean_is_exclusive(x_14);
if (x_30 == 0)
{
return x_14;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_14, 0);
x_32 = lean_ctor_get(x_14, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_14);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1() {
_start:
{
uint8_t x_1; uint8_t x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_1 = 0;
x_2 = 1;
x_3 = 1;
x_4 = 0;
x_5 = lean_alloc_ctor(0, 0, 13);
lean_ctor_set_uint8(x_5, 0, x_1);
lean_ctor_set_uint8(x_5, 1, x_1);
lean_ctor_set_uint8(x_5, 2, x_1);
lean_ctor_set_uint8(x_5, 3, x_1);
lean_ctor_set_uint8(x_5, 4, x_1);
lean_ctor_set_uint8(x_5, 5, x_2);
lean_ctor_set_uint8(x_5, 6, x_2);
lean_ctor_set_uint8(x_5, 7, x_1);
lean_ctor_set_uint8(x_5, 8, x_2);
lean_ctor_set_uint8(x_5, 9, x_3);
lean_ctor_set_uint8(x_5, 10, x_1);
lean_ctor_set_uint8(x_5, 11, x_4);
lean_ctor_set_uint8(x_5, 12, x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4;
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_4);
lean_ctor_set(x_5, 3, x_4);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7;
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
x_5 = lean_unsigned_to_nat(0u);
x_6 = 0;
x_7 = lean_alloc_ctor(0, 6, 2);
lean_ctor_set(x_7, 0, x_2);
lean_ctor_set(x_7, 1, x_3);
lean_ctor_set(x_7, 2, x_4);
lean_ctor_set(x_7, 3, x_1);
lean_ctor_set(x_7, 4, x_5);
lean_ctor_set(x_7, 5, x_1);
lean_ctor_set_uint8(x_7, sizeof(void*)*6, x_6);
lean_ctor_set_uint8(x_7, sizeof(void*)*6 + 1, x_6);
return x_7;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 2, x_1);
lean_ctor_set(x_3, 3, x_2);
lean_ctor_set(x_3, 4, x_2);
lean_ctor_set(x_3, 5, x_2);
lean_ctor_set(x_3, 6, x_2);
lean_ctor_set(x_3, 7, x_2);
lean_ctor_set(x_3, 8, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_2 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
lean_ctor_set(x_2, 3, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11;
x_3 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 2, x_1);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_2);
lean_ctor_set(x_3, 6, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_2 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
lean_ctor_set(x_2, 3, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6;
x_5 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_2);
lean_ctor_set(x_6, 1, x_3);
lean_ctor_set(x_6, 2, x_1);
lean_ctor_set(x_6, 3, x_4);
lean_ctor_set(x_6, 4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid attribute '", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("', must be global", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_box(0);
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14;
x_10 = lean_st_mk_ref(x_9, x_7);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_5);
x_14 = l_Lean_Attribute_Builtin_ensureNoArgs(x_3, x_5, x_6, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16; uint8_t x_17; 
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = 0;
x_17 = l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_162_(x_4, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
lean_dec(x_2);
x_18 = l_Lean_MessageData_ofName(x_1);
x_19 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16;
lean_ctor_set_tag(x_10, 7);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_19);
x_20 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18;
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_10);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
x_23 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_21, x_22, x_12, x_5, x_6, x_15);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_12);
x_24 = !lean_is_exclusive(x_23);
if (x_24 == 0)
{
return x_23;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_23, 0);
x_26 = lean_ctor_get(x_23, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_23);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_free_object(x_10);
lean_dec(x_1);
x_28 = lean_box(0);
x_29 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
lean_inc(x_12);
x_30 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3(x_2, x_8, x_28, x_29, x_12, x_5, x_6, x_15);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
x_33 = lean_st_ref_get(x_12, x_32);
lean_dec(x_12);
x_34 = !lean_is_exclusive(x_33);
if (x_34 == 0)
{
lean_object* x_35; 
x_35 = lean_ctor_get(x_33, 0);
lean_dec(x_35);
lean_ctor_set(x_33, 0, x_31);
return x_33;
}
else
{
lean_object* x_36; lean_object* x_37; 
x_36 = lean_ctor_get(x_33, 1);
lean_inc(x_36);
lean_dec(x_33);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_31);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
else
{
uint8_t x_38; 
lean_dec(x_12);
x_38 = !lean_is_exclusive(x_30);
if (x_38 == 0)
{
return x_30;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_30, 0);
x_40 = lean_ctor_get(x_30, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_30);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
}
else
{
uint8_t x_42; 
lean_free_object(x_10);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_42 = !lean_is_exclusive(x_14);
if (x_42 == 0)
{
return x_14;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_14, 0);
x_44 = lean_ctor_get(x_14, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_14);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_10, 0);
x_47 = lean_ctor_get(x_10, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_10);
lean_inc(x_5);
x_48 = l_Lean_Attribute_Builtin_ensureNoArgs(x_3, x_5, x_6, x_47);
if (lean_obj_tag(x_48) == 0)
{
lean_object* x_49; uint8_t x_50; uint8_t x_51; 
x_49 = lean_ctor_get(x_48, 1);
lean_inc(x_49);
lean_dec(x_48);
x_50 = 0;
x_51 = l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_162_(x_4, x_50);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
lean_dec(x_2);
x_52 = l_Lean_MessageData_ofName(x_1);
x_53 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16;
x_54 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_52);
x_55 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18;
x_56 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
x_58 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_56, x_57, x_46, x_5, x_6, x_49);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_46);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
x_60 = lean_ctor_get(x_58, 1);
lean_inc(x_60);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 lean_ctor_release(x_58, 1);
 x_61 = x_58;
} else {
 lean_dec_ref(x_58);
 x_61 = lean_box(0);
}
if (lean_is_scalar(x_61)) {
 x_62 = lean_alloc_ctor(1, 2, 0);
} else {
 x_62 = x_61;
}
lean_ctor_set(x_62, 0, x_59);
lean_ctor_set(x_62, 1, x_60);
return x_62;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
lean_dec(x_1);
x_63 = lean_box(0);
x_64 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
lean_inc(x_46);
x_65 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3(x_2, x_8, x_63, x_64, x_46, x_5, x_6, x_49);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_66 = lean_ctor_get(x_65, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec(x_65);
x_68 = lean_st_ref_get(x_46, x_67);
lean_dec(x_46);
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
if (lean_is_exclusive(x_68)) {
 lean_ctor_release(x_68, 0);
 lean_ctor_release(x_68, 1);
 x_70 = x_68;
} else {
 lean_dec_ref(x_68);
 x_70 = lean_box(0);
}
if (lean_is_scalar(x_70)) {
 x_71 = lean_alloc_ctor(0, 2, 0);
} else {
 x_71 = x_70;
}
lean_ctor_set(x_71, 0, x_66);
lean_ctor_set(x_71, 1, x_69);
return x_71;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_46);
x_72 = lean_ctor_get(x_65, 0);
lean_inc(x_72);
x_73 = lean_ctor_get(x_65, 1);
lean_inc(x_73);
if (lean_is_exclusive(x_65)) {
 lean_ctor_release(x_65, 0);
 lean_ctor_release(x_65, 1);
 x_74 = x_65;
} else {
 lean_dec_ref(x_65);
 x_74 = lean_box(0);
}
if (lean_is_scalar(x_74)) {
 x_75 = lean_alloc_ctor(1, 2, 0);
} else {
 x_75 = x_74;
}
lean_ctor_set(x_75, 0, x_72);
lean_ctor_set(x_75, 1, x_73);
return x_75;
}
}
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 
lean_dec(x_46);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_76 = lean_ctor_get(x_48, 0);
lean_inc(x_76);
x_77 = lean_ctor_get(x_48, 1);
lean_inc(x_77);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 lean_ctor_release(x_48, 1);
 x_78 = x_48;
} else {
 lean_dec_ref(x_48);
 x_78 = lean_box(0);
}
if (lean_is_scalar(x_78)) {
 x_79 = lean_alloc_ctor(1, 2, 0);
} else {
 x_79 = x_78;
}
lean_ctor_set(x_79, 0, x_76);
lean_ctor_set(x_79, 1, x_77);
return x_79;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attribute cannot be erased", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2;
x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; uint8_t x_11; 
x_10 = lean_st_ref_get(x_8, x_9);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
x_14 = lean_ctor_get(x_12, 0);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_ctor_get(x_1, 1);
lean_ctor_set(x_10, 1, x_3);
lean_ctor_set(x_10, 0, x_2);
lean_inc(x_15);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_10);
x_17 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_18 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_17, x_14, x_16);
x_19 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_18, x_5, x_6, x_7, x_8, x_13);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_20 = lean_ctor_get(x_10, 0);
x_21 = lean_ctor_get(x_10, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_10);
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_1, 1);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_2);
lean_ctor_set(x_24, 1, x_3);
lean_inc(x_23);
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_27 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_26, x_22, x_25);
x_28 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_27, x_5, x_6, x_7, x_8, x_21);
return x_28;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; 
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_14 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_4, x_13, x_5);
x_15 = lean_ctor_get(x_1, 1);
lean_inc(x_15);
x_16 = lean_unbox_uint64(x_15);
lean_dec(x_15);
x_17 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_14, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
lean_dec(x_6);
x_18 = lean_box(0);
x_19 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(x_1, x_2, x_3, x_18, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_10);
lean_dec(x_1);
return x_19;
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_17, 0);
lean_inc(x_20);
lean_dec(x_17);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_22 = lean_ctor_get(x_20, 0);
x_23 = lean_ctor_get(x_20, 1);
lean_dec(x_23);
x_24 = l_Lean_Expr_const___override(x_22, x_6);
x_25 = l_Lean_MessageData_ofExpr(x_24);
x_26 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3;
lean_ctor_set_tag(x_20, 7);
lean_ctor_set(x_20, 1, x_25);
lean_ctor_set(x_20, 0, x_26);
x_27 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5;
x_28 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_28, 0, x_20);
lean_ctor_set(x_28, 1, x_27);
lean_inc(x_10);
x_29 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_28, x_8, x_9, x_10, x_11, x_12);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(x_1, x_2, x_3, x_30, x_8, x_9, x_10, x_11, x_31);
lean_dec(x_10);
lean_dec(x_30);
lean_dec(x_1);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_33 = lean_ctor_get(x_20, 0);
lean_inc(x_33);
lean_dec(x_20);
x_34 = l_Lean_Expr_const___override(x_33, x_6);
x_35 = l_Lean_MessageData_ofExpr(x_34);
x_36 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3;
x_37 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_35);
x_38 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5;
x_39 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
lean_inc(x_10);
x_40 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_39, x_8, x_9, x_10, x_11, x_12);
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(x_1, x_2, x_3, x_41, x_8, x_9, x_10, x_11, x_42);
lean_dec(x_10);
lean_dec(x_41);
lean_dec(x_1);
return x_43;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("A builtin widget module with the same hash(JS source code) was already registered.", 82, 82);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_9 = lean_box(0);
lean_inc(x_1);
x_10 = l_Lean_Expr_const___override(x_1, x_9);
x_11 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4;
x_12 = lean_array_push(x_11, x_10);
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_14 = l_Lean_Meta_mkAppM(x_13, x_12, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_15);
x_17 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(x_15, x_4, x_5, x_6, x_7, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; lean_object* x_30; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = lean_st_ref_get(x_7, x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
lean_dec(x_21);
x_24 = l_Lean_Widget_addBuiltinModule___closed__1;
x_25 = lean_st_ref_get(x_24, x_22);
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
x_27 = lean_ctor_get(x_25, 1);
lean_inc(x_27);
lean_dec(x_25);
x_28 = lean_ctor_get(x_18, 1);
lean_inc(x_28);
x_29 = lean_unbox_uint64(x_28);
lean_dec(x_28);
x_30 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_26, x_29);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_box(0);
x_32 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7(x_18, x_1, x_15, x_2, x_23, x_9, x_31, x_4, x_5, x_6, x_7, x_27);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_23);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_30);
x_33 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2;
lean_inc(x_6);
x_34 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_33, x_4, x_5, x_6, x_7, x_27);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7(x_18, x_1, x_15, x_2, x_23, x_9, x_35, x_4, x_5, x_6, x_7, x_36);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_35);
lean_dec(x_23);
return x_37;
}
}
else
{
uint8_t x_38; 
lean_dec(x_15);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_38 = !lean_is_exclusive(x_17);
if (x_38 == 0)
{
return x_17;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_17, 0);
x_40 = lean_ctor_get(x_17, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_17);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
else
{
uint8_t x_42; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_42 = !lean_is_exclusive(x_14);
if (x_42 == 0)
{
return x_14;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_14, 0);
x_44 = lean_ctor_get(x_14, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_14);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_box(0);
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14;
x_10 = lean_st_mk_ref(x_9, x_7);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_5);
x_14 = l_Lean_Attribute_Builtin_ensureNoArgs(x_3, x_5, x_6, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; uint8_t x_16; uint8_t x_17; 
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = 0;
x_17 = l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_162_(x_4, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
lean_dec(x_2);
x_18 = l_Lean_MessageData_ofName(x_1);
x_19 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16;
lean_ctor_set_tag(x_10, 7);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_19);
x_20 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18;
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_10);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
x_23 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_21, x_22, x_12, x_5, x_6, x_15);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_12);
x_24 = !lean_is_exclusive(x_23);
if (x_24 == 0)
{
return x_23;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_23, 0);
x_26 = lean_ctor_get(x_23, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_23);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_free_object(x_10);
lean_dec(x_1);
x_28 = lean_box(0);
x_29 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
lean_inc(x_12);
x_30 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8(x_2, x_8, x_28, x_29, x_12, x_5, x_6, x_15);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
x_33 = lean_st_ref_get(x_12, x_32);
lean_dec(x_12);
x_34 = !lean_is_exclusive(x_33);
if (x_34 == 0)
{
lean_object* x_35; 
x_35 = lean_ctor_get(x_33, 0);
lean_dec(x_35);
lean_ctor_set(x_33, 0, x_31);
return x_33;
}
else
{
lean_object* x_36; lean_object* x_37; 
x_36 = lean_ctor_get(x_33, 1);
lean_inc(x_36);
lean_dec(x_33);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_31);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
else
{
uint8_t x_38; 
lean_dec(x_12);
x_38 = !lean_is_exclusive(x_30);
if (x_38 == 0)
{
return x_30;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_30, 0);
x_40 = lean_ctor_get(x_30, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_30);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
}
else
{
uint8_t x_42; 
lean_free_object(x_10);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_42 = !lean_is_exclusive(x_14);
if (x_42 == 0)
{
return x_14;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_14, 0);
x_44 = lean_ctor_get(x_14, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_14);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_10, 0);
x_47 = lean_ctor_get(x_10, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_10);
lean_inc(x_5);
x_48 = l_Lean_Attribute_Builtin_ensureNoArgs(x_3, x_5, x_6, x_47);
if (lean_obj_tag(x_48) == 0)
{
lean_object* x_49; uint8_t x_50; uint8_t x_51; 
x_49 = lean_ctor_get(x_48, 1);
lean_inc(x_49);
lean_dec(x_48);
x_50 = 0;
x_51 = l___private_Lean_Attributes_0__Lean_beqAttributeKind____x40_Lean_Attributes___hyg_162_(x_4, x_50);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
lean_dec(x_2);
x_52 = l_Lean_MessageData_ofName(x_1);
x_53 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16;
x_54 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_52);
x_55 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18;
x_56 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
x_58 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_56, x_57, x_46, x_5, x_6, x_49);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_46);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
x_60 = lean_ctor_get(x_58, 1);
lean_inc(x_60);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 lean_ctor_release(x_58, 1);
 x_61 = x_58;
} else {
 lean_dec_ref(x_58);
 x_61 = lean_box(0);
}
if (lean_is_scalar(x_61)) {
 x_62 = lean_alloc_ctor(1, 2, 0);
} else {
 x_62 = x_61;
}
lean_ctor_set(x_62, 0, x_59);
lean_ctor_set(x_62, 1, x_60);
return x_62;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
lean_dec(x_1);
x_63 = lean_box(0);
x_64 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9;
lean_inc(x_46);
x_65 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8(x_2, x_8, x_63, x_64, x_46, x_5, x_6, x_49);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_66 = lean_ctor_get(x_65, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec(x_65);
x_68 = lean_st_ref_get(x_46, x_67);
lean_dec(x_46);
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
if (lean_is_exclusive(x_68)) {
 lean_ctor_release(x_68, 0);
 lean_ctor_release(x_68, 1);
 x_70 = x_68;
} else {
 lean_dec_ref(x_68);
 x_70 = lean_box(0);
}
if (lean_is_scalar(x_70)) {
 x_71 = lean_alloc_ctor(0, 2, 0);
} else {
 x_71 = x_70;
}
lean_ctor_set(x_71, 0, x_66);
lean_ctor_set(x_71, 1, x_69);
return x_71;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_46);
x_72 = lean_ctor_get(x_65, 0);
lean_inc(x_72);
x_73 = lean_ctor_get(x_65, 1);
lean_inc(x_73);
if (lean_is_exclusive(x_65)) {
 lean_ctor_release(x_65, 0);
 lean_ctor_release(x_65, 1);
 x_74 = x_65;
} else {
 lean_dec_ref(x_65);
 x_74 = lean_box(0);
}
if (lean_is_scalar(x_74)) {
 x_75 = lean_alloc_ctor(1, 2, 0);
} else {
 x_75 = x_74;
}
lean_ctor_set(x_75, 0, x_72);
lean_ctor_set(x_75, 1, x_73);
return x_75;
}
}
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 
lean_dec(x_46);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_76 = lean_ctor_get(x_48, 0);
lean_inc(x_76);
x_77 = lean_ctor_get(x_48, 1);
lean_inc(x_77);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 lean_ctor_release(x_48, 1);
 x_78 = x_48;
} else {
 lean_dec_ref(x_48);
 x_78 = lean_box(0);
}
if (lean_is_scalar(x_78)) {
 x_79 = lean_alloc_ctor(1, 2, 0);
} else {
 x_79 = x_78;
}
lean_ctor_set(x_79, 0, x_76);
lean_ctor_set(x_79, 1, x_77);
return x_79;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("builtin_widget_module", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widgetModuleAttrImpl", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(builtin) ", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Registers a widget module. Its type must implement Lean.Widget.ToModule.", 72, 72);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7;
x_4 = 1;
x_5 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widget_module", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13;
x_4 = 1;
x_5 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2;
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___boxed), 7, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8;
x_5 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9;
x_6 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_3);
lean_ctor_set(x_6, 2, x_5);
x_7 = l_Lean_registerBuiltinAttribute(x_6, x_1);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11;
x_10 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9___boxed), 7, 1);
lean_closure_set(x_10, 0, x_9);
x_11 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14;
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
lean_ctor_set(x_12, 2, x_5);
lean_inc(x_12);
x_13 = l_Lean_registerBuiltinAttribute(x_12, x_8);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_13, 0);
lean_dec(x_15);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
lean_dec(x_13);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_12);
lean_ctor_set(x_17, 1, x_16);
return x_17;
}
}
else
{
uint8_t x_18; 
lean_dec(x_12);
x_18 = !lean_is_exclusive(x_13);
if (x_18 == 0)
{
return x_13;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_13, 0);
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_13);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_7);
if (x_22 == 0)
{
return x_7;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_7, 0);
x_24 = lean_ctor_get(x_7, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_7);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_4 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_4 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_4);
lean_dec(x_4);
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4(x_1, x_2, x_3, x_8, x_5, x_6, x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_4);
lean_dec(x_4);
x_9 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__9(x_1, x_2, x_3, x_8, x_5, x_6, x_7);
return x_9;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hash", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pos", 3, 3);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825_(lean_object* x_1) {
_start:
{
uint64_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
x_3 = lean_uint64_to_nat(x_2);
x_4 = l_Lean_bignumToJson(x_3);
x_5 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1;
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
lean_dec(x_1);
x_10 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonPosition____x40_Lean_Data_Lsp_Basic___hyg_406_(x_9);
x_11 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2;
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_7);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_8);
lean_ctor_set(x_15, 1, x_14);
x_16 = l_List_join___rarg(x_15);
x_17 = l_Lean_Json_mkObj(x_16);
return x_17;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonGetWidgetSourceParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("GetWidgetSourceParams", 21, 21);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(": ", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcConnected____x40_Lean_Data_Lsp_Extra___hyg_1794____spec__1(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_3, 0);
lean_inc(x_12);
lean_dec(x_3);
x_13 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2;
x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786____spec__1(x_1, x_13);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
lean_dec(x_12);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13;
x_18 = lean_string_append(x_17, x_16);
lean_dec(x_16);
lean_ctor_set(x_14, 0, x_18);
return x_14;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_19 = lean_ctor_get(x_14, 0);
lean_inc(x_19);
lean_dec(x_14);
x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
x_22 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
}
else
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_14);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; uint64_t x_26; 
x_24 = lean_ctor_get(x_14, 0);
x_25 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_unbox_uint64(x_12);
lean_dec(x_12);
lean_ctor_set_uint64(x_25, sizeof(void*)*1, x_26);
lean_ctor_set(x_14, 0, x_25);
return x_14;
}
else
{
lean_object* x_27; lean_object* x_28; uint64_t x_29; lean_object* x_30; 
x_27 = lean_ctor_get(x_14, 0);
lean_inc(x_27);
lean_dec(x_14);
x_28 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_28, 0, x_27);
x_29 = lean_unbox_uint64(x_12);
lean_dec(x_12);
lean_ctor_set_uint64(x_28, sizeof(void*)*1, x_29);
x_30 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_30, 0, x_28);
return x_30;
}
}
}
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonGetWidgetSourceParams() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedWidgetSource() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("sourcetext", 10, 10);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_List_join___rarg(x_7);
x_9 = l_Lean_Json_mkObj(x_8);
return x_9;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonWidgetSource___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonWidgetSource() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instToJsonWidgetSource___closed__1;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("WidgetSource", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1;
x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonWidgetSource___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonWidgetSource() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instFromJsonWidgetSource___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_11 = lean_apply_8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_13 = !lean_is_exclusive(x_11);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_11, 0);
lean_dec(x_14);
x_15 = !lean_is_exclusive(x_12);
if (x_15 == 0)
{
return x_11;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_12, 0);
lean_inc(x_16);
lean_dec(x_12);
x_17 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_11, 0, x_17);
return x_11;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
lean_dec(x_11);
x_19 = lean_ctor_get(x_12, 0);
lean_inc(x_19);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 x_20 = x_12;
} else {
 lean_dec_ref(x_12);
 x_20 = lean_box(0);
}
if (lean_is_scalar(x_20)) {
 x_21 = lean_alloc_ctor(0, 1, 0);
} else {
 x_21 = x_20;
}
lean_ctor_set(x_21, 0, x_19);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_18);
return x_22;
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_11, 1);
lean_inc(x_23);
lean_dec(x_11);
x_24 = lean_ctor_get(x_12, 0);
lean_inc(x_24);
lean_dec(x_12);
x_25 = lean_apply_9(x_2, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23);
return x_25;
}
}
else
{
uint8_t x_26; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_26 = !lean_is_exclusive(x_11);
if (x_26 == 0)
{
return x_11;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_11, 0);
x_28 = lean_ctor_get(x_11, 1);
lean_inc(x_28);
lean_inc(x_27);
lean_dec(x_11);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
return x_29;
}
}
}
}
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg), 10, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_Widget_getWidgetSource___lambda__2(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Server_Snapshots_Snapshot_endPos(x_3);
x_5 = lean_nat_dec_le(x_1, x_4);
lean_dec(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_box(0);
x_7 = l_Lean_Server_Snapshots_Snapshot_env(x_3);
x_8 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_9 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_6, x_8, x_7);
lean_dec(x_7);
x_10 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_9, x_2);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
else
{
uint8_t x_12; 
lean_dec(x_10);
x_12 = 1;
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = 1;
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(x_1, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_10, 0, x_13);
return x_10;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_10, 0);
x_15 = lean_ctor_get(x_10, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_10);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_14);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
return x_17;
}
}
else
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_10);
if (x_18 == 0)
{
return x_10;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_10, 0);
x_20 = lean_ctor_get(x_10, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_10);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_1);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_1, 0);
x_12 = lean_ctor_get(x_1, 1);
lean_dec(x_12);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_1, 1, x_9);
lean_ctor_set(x_1, 0, x_13);
return x_1;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_1, 0);
lean_inc(x_14);
lean_dec(x_1);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_9);
return x_16;
}
}
}
static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__5___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__4___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_box(0);
x_7 = l_Lean_Server_Snapshots_Snapshot_env(x_3);
x_8 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_9 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_6, x_8, x_7);
lean_dec(x_7);
x_10 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_9, x_1);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec(x_4);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_2);
lean_ctor_set(x_11, 1, x_5);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_2);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__3___boxed), 9, 1);
lean_closure_set(x_14, 0, x_13);
x_15 = l_Lean_Widget_getWidgetSource___lambda__5___closed__1;
x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg), 10, 2);
lean_closure_set(x_16, 0, x_14);
lean_closure_set(x_16, 1, x_15);
x_17 = l_Lean_Server_RequestM_runTermElabM___rarg(x_3, x_16, x_4, x_5);
return x_17;
}
}
}
static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__6___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("No widget module with hash ", 27, 27);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_getWidgetSource___lambda__6___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" registered", 11, 11);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_5 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec(x_8);
x_10 = lean_ctor_get(x_9, 2);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
x_12 = l_Lean_FileMap_lspPosToUtf8Pos(x_10, x_11);
lean_dec(x_10);
x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
lean_dec(x_1);
x_14 = lean_uint64_to_nat(x_13);
x_15 = l___private_Init_Data_Repr_0__Nat_reprFast(x_14);
x_16 = l_Lean_Widget_getWidgetSource___lambda__6___closed__1;
x_17 = lean_string_append(x_16, x_15);
lean_dec(x_15);
x_18 = l_Lean_Widget_getWidgetSource___lambda__6___closed__2;
x_19 = lean_string_append(x_17, x_18);
x_20 = 3;
x_21 = lean_alloc_ctor(0, 1, 1);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20);
lean_inc(x_21);
x_22 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__1___boxed), 3, 1);
lean_closure_set(x_22, 0, x_21);
x_23 = lean_box_uint64(x_13);
x_24 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__2___boxed), 3, 2);
lean_closure_set(x_24, 0, x_12);
lean_closure_set(x_24, 1, x_23);
x_25 = lean_box_uint64(x_13);
x_26 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource___lambda__5___boxed), 5, 2);
lean_closure_set(x_26, 0, x_25);
lean_closure_set(x_26, 1, x_21);
x_27 = l_Lean_Server_RequestM_withWaitFindSnap___rarg(x_6, x_24, x_22, x_26, x_3, x_7);
return x_27;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = l_Lean_Widget_addBuiltinModule___closed__1;
x_5 = lean_st_ref_get(x_4, x_3);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; uint64_t x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
x_10 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_7, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; 
lean_free_object(x_5);
x_11 = lean_box(0);
x_12 = l_Lean_Widget_getWidgetSource___lambda__6(x_1, x_11, x_2, x_8);
return x_12;
}
else
{
uint8_t x_13; 
lean_dec(x_2);
lean_dec(x_1);
x_13 = !lean_is_exclusive(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_10, 0);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
lean_dec(x_15);
lean_ctor_set(x_10, 0, x_16);
x_17 = lean_task_pure(x_10);
lean_ctor_set(x_5, 0, x_17);
return x_5;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_10, 0);
lean_inc(x_18);
lean_dec(x_10);
x_19 = lean_ctor_get(x_18, 1);
lean_inc(x_19);
lean_dec(x_18);
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
lean_dec(x_19);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
x_22 = lean_task_pure(x_21);
lean_ctor_set(x_5, 0, x_22);
return x_5;
}
}
}
else
{
lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; 
x_23 = lean_ctor_get(x_5, 0);
x_24 = lean_ctor_get(x_5, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_5);
x_25 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
x_26 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_23, x_25);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_box(0);
x_28 = l_Lean_Widget_getWidgetSource___lambda__6(x_1, x_27, x_2, x_24);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
lean_dec(x_2);
lean_dec(x_1);
x_29 = lean_ctor_get(x_26, 0);
lean_inc(x_29);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 x_30 = x_26;
} else {
 lean_dec_ref(x_26);
 x_30 = lean_box(0);
}
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec(x_31);
if (lean_is_scalar(x_30)) {
 x_33 = lean_alloc_ctor(1, 1, 0);
} else {
 x_33 = x_30;
}
lean_ctor_set(x_33, 0, x_32);
x_34 = lean_task_pure(x_33);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_24);
return x_35;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Widget_getWidgetSource___lambda__1(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; uint8_t x_5; lean_object* x_6; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_Widget_getWidgetSource___lambda__2(x_1, x_4, x_3);
lean_dec(x_3);
lean_dec(x_1);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Widget_getWidgetSource___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Widget_getWidgetSource___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint64_t x_6; lean_object* x_7; 
x_6 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_7 = l_Lean_Widget_getWidgetSource___lambda__5(x_6, x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgetSource___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_getWidgetSource___lambda__6(x_1, x_2, x_3, x_4);
lean_dec(x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_instFromJsonGetWidgetSourceParams;
x_2 = l_Lean_Widget_instToJsonGetWidgetSourceParams;
x_3 = l_Lean_Server_instRpcEncodableOfFromJsonOfToJson___rarg(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_instFromJsonWidgetSource;
x_2 = l_Lean_Widget_instToJsonWidgetSource;
x_3 = l_Lean_Server_instRpcEncodableOfFromJsonOfToJson___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1;
x_4 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2;
x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___elambda__1___boxed), 10, 6);
lean_closure_set(x_5, 0, x_1);
lean_closure_set(x_5, 1, lean_box(0));
lean_closure_set(x_5, 2, lean_box(0));
lean_closure_set(x_5, 3, x_3);
lean_closure_set(x_5, 4, x_4);
lean_closure_set(x_5, 5, x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Server_builtinRpcProcedures;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
lean_inc(x_1);
x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2(x_1, x_2);
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1;
x_7 = lean_st_ref_take(x_6, x_4);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = l_Lean_PersistentHashMap_insert___at_Lean_Server_registerBuiltinRpcProcedure___spec__1(x_8, x_1, x_5);
x_11 = lean_st_ref_set(x_6, x_10, x_9);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
return x_11;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_11, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_11);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
}
static lean_object* _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(": already registered", 20, 20);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1;
x_7 = lean_st_ref_get(x_6, x_5);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = l_Lean_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(x_9, x_1);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_free_object(x_7);
x_12 = lean_box(0);
x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1(x_1, x_2, x_12, x_10);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_2);
lean_dec(x_1);
x_14 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_15 = lean_string_append(x_14, x_3);
x_16 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1;
x_17 = lean_string_append(x_15, x_16);
x_18 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set_tag(x_7, 1);
lean_ctor_set(x_7, 0, x_18);
return x_7;
}
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_ctor_get(x_7, 0);
x_20 = lean_ctor_get(x_7, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_7);
x_21 = l_Lean_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(x_19, x_1);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_box(0);
x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1(x_1, x_2, x_22, x_20);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_2);
lean_dec(x_1);
x_24 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_25 = lean_string_append(x_24, x_3);
x_26 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1;
x_27 = lean_string_append(x_25, x_26);
x_28 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_28, 0, x_27);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_20);
return x_29;
}
}
}
}
static lean_object* _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Failed to register builtin RPC call handler for '", 49, 49);
return x_1;
}
}
static lean_object* _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(": only possible during initialization", 37, 37);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_4 = 1;
lean_inc(x_1);
x_5 = l_Lean_Name_toString(x_1, x_4);
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
x_8 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_9 = lean_string_append(x_7, x_8);
x_10 = l_Lean_initializing(x_3);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_2);
lean_dec(x_1);
x_13 = !lean_is_exclusive(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_14 = lean_ctor_get(x_10, 0);
lean_dec(x_14);
x_15 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_16 = lean_string_append(x_15, x_9);
lean_dec(x_9);
x_17 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3;
x_18 = lean_string_append(x_16, x_17);
x_19 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_19);
return x_10;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = lean_ctor_get(x_10, 1);
lean_inc(x_20);
lean_dec(x_10);
x_21 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_22 = lean_string_append(x_21, x_9);
lean_dec(x_9);
x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3;
x_24 = lean_string_append(x_22, x_23);
x_25 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_20);
return x_26;
}
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_10, 1);
lean_inc(x_27);
lean_dec(x_10);
x_28 = lean_box(0);
x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27);
lean_dec(x_9);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("getWidgetSource", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgetSource), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3;
x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(lean_object* x_1, uint64_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint64(x_5);
x_9 = lean_uint64_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint64_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint64(x_5);
lean_dec(x_5);
x_11 = lean_uint64_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint64(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint64(x_11);
x_15 = lean_uint64_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint64_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint64(x_11);
x_17 = lean_uint64_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint64(x_25);
x_29 = lean_uint64_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint64_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint64(x_25);
x_31 = lean_uint64_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint64(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint64(x_43);
x_47 = lean_uint64_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint64_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint64(x_43);
x_49 = lean_uint64_dec_eq(x_2, x_48);
if (x_49 == 0)
{
lean_object* x_50; uint8_t x_51; 
x_50 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_45, x_2, x_3);
x_51 = lean_ctor_get_uint8(x_50, sizeof(void*)*4);
if (x_51 == 0)
{
lean_object* x_52; 
x_52 = lean_ctor_get(x_50, 0);
lean_inc(x_52);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; 
x_53 = lean_ctor_get(x_50, 3);
lean_inc(x_53);
if (lean_obj_tag(x_53) == 0)
{
uint8_t x_54; 
x_54 = !lean_is_exclusive(x_50);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_55 = lean_ctor_get(x_50, 3);
lean_dec(x_55);
x_56 = lean_ctor_get(x_50, 0);
lean_dec(x_56);
lean_ctor_set(x_50, 0, x_53);
x_57 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_57);
return x_1;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; 
x_58 = lean_ctor_get(x_50, 1);
x_59 = lean_ctor_get(x_50, 2);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_50);
x_60 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_60, 0, x_53);
lean_ctor_set(x_60, 1, x_58);
lean_ctor_set(x_60, 2, x_59);
lean_ctor_set(x_60, 3, x_53);
lean_ctor_set_uint8(x_60, sizeof(void*)*4, x_51);
x_61 = 1;
lean_ctor_set(x_1, 3, x_60);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_61);
return x_1;
}
}
else
{
uint8_t x_62; 
x_62 = lean_ctor_get_uint8(x_53, sizeof(void*)*4);
if (x_62 == 0)
{
uint8_t x_63; 
x_63 = !lean_is_exclusive(x_50);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_64 = lean_ctor_get(x_50, 1);
x_65 = lean_ctor_get(x_50, 2);
x_66 = lean_ctor_get(x_50, 3);
lean_dec(x_66);
x_67 = lean_ctor_get(x_50, 0);
lean_dec(x_67);
x_68 = !lean_is_exclusive(x_53);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; 
x_69 = lean_ctor_get(x_53, 0);
x_70 = lean_ctor_get(x_53, 1);
x_71 = lean_ctor_get(x_53, 2);
x_72 = lean_ctor_get(x_53, 3);
x_73 = 1;
lean_ctor_set(x_53, 3, x_52);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_73);
lean_ctor_set(x_50, 3, x_72);
lean_ctor_set(x_50, 2, x_71);
lean_ctor_set(x_50, 1, x_70);
lean_ctor_set(x_50, 0, x_69);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_73);
x_74 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_74);
return x_1;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; uint8_t x_81; 
x_75 = lean_ctor_get(x_53, 0);
x_76 = lean_ctor_get(x_53, 1);
x_77 = lean_ctor_get(x_53, 2);
x_78 = lean_ctor_get(x_53, 3);
lean_inc(x_78);
lean_inc(x_77);
lean_inc(x_76);
lean_inc(x_75);
lean_dec(x_53);
x_79 = 1;
x_80 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_80, 0, x_42);
lean_ctor_set(x_80, 1, x_43);
lean_ctor_set(x_80, 2, x_44);
lean_ctor_set(x_80, 3, x_52);
lean_ctor_set_uint8(x_80, sizeof(void*)*4, x_79);
lean_ctor_set(x_50, 3, x_78);
lean_ctor_set(x_50, 2, x_77);
lean_ctor_set(x_50, 1, x_76);
lean_ctor_set(x_50, 0, x_75);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_79);
x_81 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_65);
lean_ctor_set(x_1, 1, x_64);
lean_ctor_set(x_1, 0, x_80);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_81);
return x_1;
}
}
else
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; 
x_82 = lean_ctor_get(x_50, 1);
x_83 = lean_ctor_get(x_50, 2);
lean_inc(x_83);
lean_inc(x_82);
lean_dec(x_50);
x_84 = lean_ctor_get(x_53, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_53, 1);
lean_inc(x_85);
x_86 = lean_ctor_get(x_53, 2);
lean_inc(x_86);
x_87 = lean_ctor_get(x_53, 3);
lean_inc(x_87);
if (lean_is_exclusive(x_53)) {
 lean_ctor_release(x_53, 0);
 lean_ctor_release(x_53, 1);
 lean_ctor_release(x_53, 2);
 lean_ctor_release(x_53, 3);
 x_88 = x_53;
} else {
 lean_dec_ref(x_53);
 x_88 = lean_box(0);
}
x_89 = 1;
if (lean_is_scalar(x_88)) {
 x_90 = lean_alloc_ctor(1, 4, 1);
} else {
 x_90 = x_88;
}
lean_ctor_set(x_90, 0, x_42);
lean_ctor_set(x_90, 1, x_43);
lean_ctor_set(x_90, 2, x_44);
lean_ctor_set(x_90, 3, x_52);
lean_ctor_set_uint8(x_90, sizeof(void*)*4, x_89);
x_91 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_91, 0, x_84);
lean_ctor_set(x_91, 1, x_85);
lean_ctor_set(x_91, 2, x_86);
lean_ctor_set(x_91, 3, x_87);
lean_ctor_set_uint8(x_91, sizeof(void*)*4, x_89);
x_92 = 0;
lean_ctor_set(x_1, 3, x_91);
lean_ctor_set(x_1, 2, x_83);
lean_ctor_set(x_1, 1, x_82);
lean_ctor_set(x_1, 0, x_90);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_92);
return x_1;
}
}
else
{
uint8_t x_93; 
lean_free_object(x_1);
x_93 = !lean_is_exclusive(x_53);
if (x_93 == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; 
x_94 = lean_ctor_get(x_53, 3);
lean_dec(x_94);
x_95 = lean_ctor_get(x_53, 2);
lean_dec(x_95);
x_96 = lean_ctor_get(x_53, 1);
lean_dec(x_96);
x_97 = lean_ctor_get(x_53, 0);
lean_dec(x_97);
x_98 = 1;
lean_ctor_set(x_53, 3, x_50);
lean_ctor_set(x_53, 2, x_44);
lean_ctor_set(x_53, 1, x_43);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_98);
return x_53;
}
else
{
uint8_t x_99; lean_object* x_100; 
lean_dec(x_53);
x_99 = 1;
x_100 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_100, 0, x_42);
lean_ctor_set(x_100, 1, x_43);
lean_ctor_set(x_100, 2, x_44);
lean_ctor_set(x_100, 3, x_50);
lean_ctor_set_uint8(x_100, sizeof(void*)*4, x_99);
return x_100;
}
}
}
}
else
{
uint8_t x_101; 
x_101 = lean_ctor_get_uint8(x_52, sizeof(void*)*4);
if (x_101 == 0)
{
uint8_t x_102; 
x_102 = !lean_is_exclusive(x_50);
if (x_102 == 0)
{
lean_object* x_103; uint8_t x_104; 
x_103 = lean_ctor_get(x_50, 0);
lean_dec(x_103);
x_104 = !lean_is_exclusive(x_52);
if (x_104 == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; 
x_105 = lean_ctor_get(x_52, 0);
x_106 = lean_ctor_get(x_52, 1);
x_107 = lean_ctor_get(x_52, 2);
x_108 = lean_ctor_get(x_52, 3);
x_109 = 1;
lean_ctor_set(x_52, 3, x_105);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_109);
lean_ctor_set(x_50, 0, x_108);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_109);
x_110 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_107);
lean_ctor_set(x_1, 1, x_106);
lean_ctor_set(x_1, 0, x_52);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_110);
return x_1;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; uint8_t x_117; 
x_111 = lean_ctor_get(x_52, 0);
x_112 = lean_ctor_get(x_52, 1);
x_113 = lean_ctor_get(x_52, 2);
x_114 = lean_ctor_get(x_52, 3);
lean_inc(x_114);
lean_inc(x_113);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_52);
x_115 = 1;
x_116 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_116, 0, x_42);
lean_ctor_set(x_116, 1, x_43);
lean_ctor_set(x_116, 2, x_44);
lean_ctor_set(x_116, 3, x_111);
lean_ctor_set_uint8(x_116, sizeof(void*)*4, x_115);
lean_ctor_set(x_50, 0, x_114);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_115);
x_117 = 0;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_116);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_117);
return x_1;
}
}
else
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; 
x_118 = lean_ctor_get(x_50, 1);
x_119 = lean_ctor_get(x_50, 2);
x_120 = lean_ctor_get(x_50, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_dec(x_50);
x_121 = lean_ctor_get(x_52, 0);
lean_inc(x_121);
x_122 = lean_ctor_get(x_52, 1);
lean_inc(x_122);
x_123 = lean_ctor_get(x_52, 2);
lean_inc(x_123);
x_124 = lean_ctor_get(x_52, 3);
lean_inc(x_124);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_125 = x_52;
} else {
 lean_dec_ref(x_52);
 x_125 = lean_box(0);
}
x_126 = 1;
if (lean_is_scalar(x_125)) {
 x_127 = lean_alloc_ctor(1, 4, 1);
} else {
 x_127 = x_125;
}
lean_ctor_set(x_127, 0, x_42);
lean_ctor_set(x_127, 1, x_43);
lean_ctor_set(x_127, 2, x_44);
lean_ctor_set(x_127, 3, x_121);
lean_ctor_set_uint8(x_127, sizeof(void*)*4, x_126);
x_128 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_128, 0, x_124);
lean_ctor_set(x_128, 1, x_118);
lean_ctor_set(x_128, 2, x_119);
lean_ctor_set(x_128, 3, x_120);
lean_ctor_set_uint8(x_128, sizeof(void*)*4, x_126);
x_129 = 0;
lean_ctor_set(x_1, 3, x_128);
lean_ctor_set(x_1, 2, x_123);
lean_ctor_set(x_1, 1, x_122);
lean_ctor_set(x_1, 0, x_127);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_129);
return x_1;
}
}
else
{
lean_object* x_130; 
x_130 = lean_ctor_get(x_50, 3);
lean_inc(x_130);
if (lean_obj_tag(x_130) == 0)
{
uint8_t x_131; 
lean_free_object(x_1);
x_131 = !lean_is_exclusive(x_52);
if (x_131 == 0)
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_132 = lean_ctor_get(x_52, 3);
lean_dec(x_132);
x_133 = lean_ctor_get(x_52, 2);
lean_dec(x_133);
x_134 = lean_ctor_get(x_52, 1);
lean_dec(x_134);
x_135 = lean_ctor_get(x_52, 0);
lean_dec(x_135);
x_136 = 1;
lean_ctor_set(x_52, 3, x_50);
lean_ctor_set(x_52, 2, x_44);
lean_ctor_set(x_52, 1, x_43);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_136);
return x_52;
}
else
{
uint8_t x_137; lean_object* x_138; 
lean_dec(x_52);
x_137 = 1;
x_138 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_138, 0, x_42);
lean_ctor_set(x_138, 1, x_43);
lean_ctor_set(x_138, 2, x_44);
lean_ctor_set(x_138, 3, x_50);
lean_ctor_set_uint8(x_138, sizeof(void*)*4, x_137);
return x_138;
}
}
else
{
uint8_t x_139; 
x_139 = lean_ctor_get_uint8(x_130, sizeof(void*)*4);
if (x_139 == 0)
{
uint8_t x_140; 
lean_free_object(x_1);
x_140 = !lean_is_exclusive(x_50);
if (x_140 == 0)
{
lean_object* x_141; lean_object* x_142; uint8_t x_143; 
x_141 = lean_ctor_get(x_50, 3);
lean_dec(x_141);
x_142 = lean_ctor_get(x_50, 0);
lean_dec(x_142);
x_143 = !lean_is_exclusive(x_130);
if (x_143 == 0)
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; uint8_t x_149; 
x_144 = lean_ctor_get(x_130, 0);
x_145 = lean_ctor_get(x_130, 1);
x_146 = lean_ctor_get(x_130, 2);
x_147 = lean_ctor_get(x_130, 3);
x_148 = 1;
lean_inc(x_52);
lean_ctor_set(x_130, 3, x_52);
lean_ctor_set(x_130, 2, x_44);
lean_ctor_set(x_130, 1, x_43);
lean_ctor_set(x_130, 0, x_42);
x_149 = !lean_is_exclusive(x_52);
if (x_149 == 0)
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; 
x_150 = lean_ctor_get(x_52, 3);
lean_dec(x_150);
x_151 = lean_ctor_get(x_52, 2);
lean_dec(x_151);
x_152 = lean_ctor_get(x_52, 1);
lean_dec(x_152);
x_153 = lean_ctor_get(x_52, 0);
lean_dec(x_153);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
lean_ctor_set(x_52, 3, x_147);
lean_ctor_set(x_52, 2, x_146);
lean_ctor_set(x_52, 1, x_145);
lean_ctor_set(x_52, 0, x_144);
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_148);
x_154 = 0;
lean_ctor_set(x_50, 3, x_52);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_154);
return x_50;
}
else
{
lean_object* x_155; uint8_t x_156; 
lean_dec(x_52);
lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_148);
x_155 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_155, 0, x_144);
lean_ctor_set(x_155, 1, x_145);
lean_ctor_set(x_155, 2, x_146);
lean_ctor_set(x_155, 3, x_147);
lean_ctor_set_uint8(x_155, sizeof(void*)*4, x_148);
x_156 = 0;
lean_ctor_set(x_50, 3, x_155);
lean_ctor_set(x_50, 0, x_130);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_156);
return x_50;
}
}
else
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; 
x_157 = lean_ctor_get(x_130, 0);
x_158 = lean_ctor_get(x_130, 1);
x_159 = lean_ctor_get(x_130, 2);
x_160 = lean_ctor_get(x_130, 3);
lean_inc(x_160);
lean_inc(x_159);
lean_inc(x_158);
lean_inc(x_157);
lean_dec(x_130);
x_161 = 1;
lean_inc(x_52);
x_162 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_162, 0, x_42);
lean_ctor_set(x_162, 1, x_43);
lean_ctor_set(x_162, 2, x_44);
lean_ctor_set(x_162, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_163 = x_52;
} else {
 lean_dec_ref(x_52);
 x_163 = lean_box(0);
}
lean_ctor_set_uint8(x_162, sizeof(void*)*4, x_161);
if (lean_is_scalar(x_163)) {
 x_164 = lean_alloc_ctor(1, 4, 1);
} else {
 x_164 = x_163;
}
lean_ctor_set(x_164, 0, x_157);
lean_ctor_set(x_164, 1, x_158);
lean_ctor_set(x_164, 2, x_159);
lean_ctor_set(x_164, 3, x_160);
lean_ctor_set_uint8(x_164, sizeof(void*)*4, x_161);
x_165 = 0;
lean_ctor_set(x_50, 3, x_164);
lean_ctor_set(x_50, 0, x_162);
lean_ctor_set_uint8(x_50, sizeof(void*)*4, x_165);
return x_50;
}
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; 
x_166 = lean_ctor_get(x_50, 1);
x_167 = lean_ctor_get(x_50, 2);
lean_inc(x_167);
lean_inc(x_166);
lean_dec(x_50);
x_168 = lean_ctor_get(x_130, 0);
lean_inc(x_168);
x_169 = lean_ctor_get(x_130, 1);
lean_inc(x_169);
x_170 = lean_ctor_get(x_130, 2);
lean_inc(x_170);
x_171 = lean_ctor_get(x_130, 3);
lean_inc(x_171);
if (lean_is_exclusive(x_130)) {
 lean_ctor_release(x_130, 0);
 lean_ctor_release(x_130, 1);
 lean_ctor_release(x_130, 2);
 lean_ctor_release(x_130, 3);
 x_172 = x_130;
} else {
 lean_dec_ref(x_130);
 x_172 = lean_box(0);
}
x_173 = 1;
lean_inc(x_52);
if (lean_is_scalar(x_172)) {
 x_174 = lean_alloc_ctor(1, 4, 1);
} else {
 x_174 = x_172;
}
lean_ctor_set(x_174, 0, x_42);
lean_ctor_set(x_174, 1, x_43);
lean_ctor_set(x_174, 2, x_44);
lean_ctor_set(x_174, 3, x_52);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_175 = x_52;
} else {
 lean_dec_ref(x_52);
 x_175 = lean_box(0);
}
lean_ctor_set_uint8(x_174, sizeof(void*)*4, x_173);
if (lean_is_scalar(x_175)) {
 x_176 = lean_alloc_ctor(1, 4, 1);
} else {
 x_176 = x_175;
}
lean_ctor_set(x_176, 0, x_168);
lean_ctor_set(x_176, 1, x_169);
lean_ctor_set(x_176, 2, x_170);
lean_ctor_set(x_176, 3, x_171);
lean_ctor_set_uint8(x_176, sizeof(void*)*4, x_173);
x_177 = 0;
x_178 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_178, 0, x_174);
lean_ctor_set(x_178, 1, x_166);
lean_ctor_set(x_178, 2, x_167);
lean_ctor_set(x_178, 3, x_176);
lean_ctor_set_uint8(x_178, sizeof(void*)*4, x_177);
return x_178;
}
}
else
{
uint8_t x_179; 
x_179 = !lean_is_exclusive(x_50);
if (x_179 == 0)
{
lean_object* x_180; lean_object* x_181; uint8_t x_182; 
x_180 = lean_ctor_get(x_50, 3);
lean_dec(x_180);
x_181 = lean_ctor_get(x_50, 0);
lean_dec(x_181);
x_182 = !lean_is_exclusive(x_52);
if (x_182 == 0)
{
uint8_t x_183; 
lean_ctor_set_uint8(x_52, sizeof(void*)*4, x_139);
x_183 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_183);
return x_1;
}
else
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; 
x_184 = lean_ctor_get(x_52, 0);
x_185 = lean_ctor_get(x_52, 1);
x_186 = lean_ctor_get(x_52, 2);
x_187 = lean_ctor_get(x_52, 3);
lean_inc(x_187);
lean_inc(x_186);
lean_inc(x_185);
lean_inc(x_184);
lean_dec(x_52);
x_188 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_188, 0, x_184);
lean_ctor_set(x_188, 1, x_185);
lean_ctor_set(x_188, 2, x_186);
lean_ctor_set(x_188, 3, x_187);
lean_ctor_set_uint8(x_188, sizeof(void*)*4, x_139);
lean_ctor_set(x_50, 0, x_188);
x_189 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_189);
return x_1;
}
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; 
x_190 = lean_ctor_get(x_50, 1);
x_191 = lean_ctor_get(x_50, 2);
lean_inc(x_191);
lean_inc(x_190);
lean_dec(x_50);
x_192 = lean_ctor_get(x_52, 0);
lean_inc(x_192);
x_193 = lean_ctor_get(x_52, 1);
lean_inc(x_193);
x_194 = lean_ctor_get(x_52, 2);
lean_inc(x_194);
x_195 = lean_ctor_get(x_52, 3);
lean_inc(x_195);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 lean_ctor_release(x_52, 2);
 lean_ctor_release(x_52, 3);
 x_196 = x_52;
} else {
 lean_dec_ref(x_52);
 x_196 = lean_box(0);
}
if (lean_is_scalar(x_196)) {
 x_197 = lean_alloc_ctor(1, 4, 1);
} else {
 x_197 = x_196;
}
lean_ctor_set(x_197, 0, x_192);
lean_ctor_set(x_197, 1, x_193);
lean_ctor_set(x_197, 2, x_194);
lean_ctor_set(x_197, 3, x_195);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_139);
x_198 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_198, 0, x_197);
lean_ctor_set(x_198, 1, x_190);
lean_ctor_set(x_198, 2, x_191);
lean_ctor_set(x_198, 3, x_130);
lean_ctor_set_uint8(x_198, sizeof(void*)*4, x_51);
x_199 = 1;
lean_ctor_set(x_1, 3, x_198);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_200; 
x_200 = 1;
lean_ctor_set(x_1, 3, x_50);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_200);
return x_1;
}
}
else
{
uint8_t x_201; lean_object* x_202; 
lean_dec(x_44);
lean_dec(x_43);
x_201 = 1;
x_202 = lean_box_uint64(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_202);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_201);
return x_1;
}
}
else
{
lean_object* x_203; uint8_t x_204; 
x_203 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_42, x_2, x_3);
x_204 = lean_ctor_get_uint8(x_203, sizeof(void*)*4);
if (x_204 == 0)
{
lean_object* x_205; 
x_205 = lean_ctor_get(x_203, 0);
lean_inc(x_205);
if (lean_obj_tag(x_205) == 0)
{
lean_object* x_206; 
x_206 = lean_ctor_get(x_203, 3);
lean_inc(x_206);
if (lean_obj_tag(x_206) == 0)
{
uint8_t x_207; 
x_207 = !lean_is_exclusive(x_203);
if (x_207 == 0)
{
lean_object* x_208; lean_object* x_209; uint8_t x_210; 
x_208 = lean_ctor_get(x_203, 3);
lean_dec(x_208);
x_209 = lean_ctor_get(x_203, 0);
lean_dec(x_209);
lean_ctor_set(x_203, 0, x_206);
x_210 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; 
x_211 = lean_ctor_get(x_203, 1);
x_212 = lean_ctor_get(x_203, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_203);
x_213 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_213, 0, x_206);
lean_ctor_set(x_213, 1, x_211);
lean_ctor_set(x_213, 2, x_212);
lean_ctor_set(x_213, 3, x_206);
lean_ctor_set_uint8(x_213, sizeof(void*)*4, x_204);
x_214 = 1;
lean_ctor_set(x_1, 0, x_213);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_214);
return x_1;
}
}
else
{
uint8_t x_215; 
x_215 = lean_ctor_get_uint8(x_206, sizeof(void*)*4);
if (x_215 == 0)
{
uint8_t x_216; 
x_216 = !lean_is_exclusive(x_203);
if (x_216 == 0)
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; 
x_217 = lean_ctor_get(x_203, 1);
x_218 = lean_ctor_get(x_203, 2);
x_219 = lean_ctor_get(x_203, 3);
lean_dec(x_219);
x_220 = lean_ctor_get(x_203, 0);
lean_dec(x_220);
x_221 = !lean_is_exclusive(x_206);
if (x_221 == 0)
{
lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; uint8_t x_227; 
x_222 = lean_ctor_get(x_206, 0);
x_223 = lean_ctor_get(x_206, 1);
x_224 = lean_ctor_get(x_206, 2);
x_225 = lean_ctor_get(x_206, 3);
x_226 = 1;
lean_ctor_set(x_206, 3, x_222);
lean_ctor_set(x_206, 2, x_218);
lean_ctor_set(x_206, 1, x_217);
lean_ctor_set(x_206, 0, x_205);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_226);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_225);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_226);
x_227 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_224);
lean_ctor_set(x_1, 1, x_223);
lean_ctor_set(x_1, 0, x_206);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_227);
return x_1;
}
else
{
lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; uint8_t x_234; 
x_228 = lean_ctor_get(x_206, 0);
x_229 = lean_ctor_get(x_206, 1);
x_230 = lean_ctor_get(x_206, 2);
x_231 = lean_ctor_get(x_206, 3);
lean_inc(x_231);
lean_inc(x_230);
lean_inc(x_229);
lean_inc(x_228);
lean_dec(x_206);
x_232 = 1;
x_233 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_233, 0, x_205);
lean_ctor_set(x_233, 1, x_217);
lean_ctor_set(x_233, 2, x_218);
lean_ctor_set(x_233, 3, x_228);
lean_ctor_set_uint8(x_233, sizeof(void*)*4, x_232);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_231);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_232);
x_234 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_230);
lean_ctor_set(x_1, 1, x_229);
lean_ctor_set(x_1, 0, x_233);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_234);
return x_1;
}
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; 
x_235 = lean_ctor_get(x_203, 1);
x_236 = lean_ctor_get(x_203, 2);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_203);
x_237 = lean_ctor_get(x_206, 0);
lean_inc(x_237);
x_238 = lean_ctor_get(x_206, 1);
lean_inc(x_238);
x_239 = lean_ctor_get(x_206, 2);
lean_inc(x_239);
x_240 = lean_ctor_get(x_206, 3);
lean_inc(x_240);
if (lean_is_exclusive(x_206)) {
 lean_ctor_release(x_206, 0);
 lean_ctor_release(x_206, 1);
 lean_ctor_release(x_206, 2);
 lean_ctor_release(x_206, 3);
 x_241 = x_206;
} else {
 lean_dec_ref(x_206);
 x_241 = lean_box(0);
}
x_242 = 1;
if (lean_is_scalar(x_241)) {
 x_243 = lean_alloc_ctor(1, 4, 1);
} else {
 x_243 = x_241;
}
lean_ctor_set(x_243, 0, x_205);
lean_ctor_set(x_243, 1, x_235);
lean_ctor_set(x_243, 2, x_236);
lean_ctor_set(x_243, 3, x_237);
lean_ctor_set_uint8(x_243, sizeof(void*)*4, x_242);
x_244 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_244, 0, x_240);
lean_ctor_set(x_244, 1, x_43);
lean_ctor_set(x_244, 2, x_44);
lean_ctor_set(x_244, 3, x_45);
lean_ctor_set_uint8(x_244, sizeof(void*)*4, x_242);
x_245 = 0;
lean_ctor_set(x_1, 3, x_244);
lean_ctor_set(x_1, 2, x_239);
lean_ctor_set(x_1, 1, x_238);
lean_ctor_set(x_1, 0, x_243);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_245);
return x_1;
}
}
else
{
uint8_t x_246; 
lean_free_object(x_1);
x_246 = !lean_is_exclusive(x_206);
if (x_246 == 0)
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; 
x_247 = lean_ctor_get(x_206, 3);
lean_dec(x_247);
x_248 = lean_ctor_get(x_206, 2);
lean_dec(x_248);
x_249 = lean_ctor_get(x_206, 1);
lean_dec(x_249);
x_250 = lean_ctor_get(x_206, 0);
lean_dec(x_250);
x_251 = 1;
lean_ctor_set(x_206, 3, x_45);
lean_ctor_set(x_206, 2, x_44);
lean_ctor_set(x_206, 1, x_43);
lean_ctor_set(x_206, 0, x_203);
lean_ctor_set_uint8(x_206, sizeof(void*)*4, x_251);
return x_206;
}
else
{
uint8_t x_252; lean_object* x_253; 
lean_dec(x_206);
x_252 = 1;
x_253 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_253, 0, x_203);
lean_ctor_set(x_253, 1, x_43);
lean_ctor_set(x_253, 2, x_44);
lean_ctor_set(x_253, 3, x_45);
lean_ctor_set_uint8(x_253, sizeof(void*)*4, x_252);
return x_253;
}
}
}
}
else
{
uint8_t x_254; 
x_254 = lean_ctor_get_uint8(x_205, sizeof(void*)*4);
if (x_254 == 0)
{
uint8_t x_255; 
x_255 = !lean_is_exclusive(x_203);
if (x_255 == 0)
{
lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_256 = lean_ctor_get(x_203, 1);
x_257 = lean_ctor_get(x_203, 2);
x_258 = lean_ctor_get(x_203, 3);
x_259 = lean_ctor_get(x_203, 0);
lean_dec(x_259);
x_260 = !lean_is_exclusive(x_205);
if (x_260 == 0)
{
uint8_t x_261; uint8_t x_262; 
x_261 = 1;
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_261);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_261);
x_262 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_205);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_262);
return x_1;
}
else
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_263 = lean_ctor_get(x_205, 0);
x_264 = lean_ctor_get(x_205, 1);
x_265 = lean_ctor_get(x_205, 2);
x_266 = lean_ctor_get(x_205, 3);
lean_inc(x_266);
lean_inc(x_265);
lean_inc(x_264);
lean_inc(x_263);
lean_dec(x_205);
x_267 = 1;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_263);
lean_ctor_set(x_268, 1, x_264);
lean_ctor_set(x_268, 2, x_265);
lean_ctor_set(x_268, 3, x_266);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
lean_ctor_set(x_203, 3, x_45);
lean_ctor_set(x_203, 2, x_44);
lean_ctor_set(x_203, 1, x_43);
lean_ctor_set(x_203, 0, x_258);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_267);
x_269 = 0;
lean_ctor_set(x_1, 3, x_203);
lean_ctor_set(x_1, 2, x_257);
lean_ctor_set(x_1, 1, x_256);
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
else
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; 
x_270 = lean_ctor_get(x_203, 1);
x_271 = lean_ctor_get(x_203, 2);
x_272 = lean_ctor_get(x_203, 3);
lean_inc(x_272);
lean_inc(x_271);
lean_inc(x_270);
lean_dec(x_203);
x_273 = lean_ctor_get(x_205, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_205, 1);
lean_inc(x_274);
x_275 = lean_ctor_get(x_205, 2);
lean_inc(x_275);
x_276 = lean_ctor_get(x_205, 3);
lean_inc(x_276);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_277 = x_205;
} else {
 lean_dec_ref(x_205);
 x_277 = lean_box(0);
}
x_278 = 1;
if (lean_is_scalar(x_277)) {
 x_279 = lean_alloc_ctor(1, 4, 1);
} else {
 x_279 = x_277;
}
lean_ctor_set(x_279, 0, x_273);
lean_ctor_set(x_279, 1, x_274);
lean_ctor_set(x_279, 2, x_275);
lean_ctor_set(x_279, 3, x_276);
lean_ctor_set_uint8(x_279, sizeof(void*)*4, x_278);
x_280 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_280, 0, x_272);
lean_ctor_set(x_280, 1, x_43);
lean_ctor_set(x_280, 2, x_44);
lean_ctor_set(x_280, 3, x_45);
lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_278);
x_281 = 0;
lean_ctor_set(x_1, 3, x_280);
lean_ctor_set(x_1, 2, x_271);
lean_ctor_set(x_1, 1, x_270);
lean_ctor_set(x_1, 0, x_279);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_281);
return x_1;
}
}
else
{
lean_object* x_282; 
x_282 = lean_ctor_get(x_203, 3);
lean_inc(x_282);
if (lean_obj_tag(x_282) == 0)
{
uint8_t x_283; 
lean_free_object(x_1);
x_283 = !lean_is_exclusive(x_205);
if (x_283 == 0)
{
lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; 
x_284 = lean_ctor_get(x_205, 3);
lean_dec(x_284);
x_285 = lean_ctor_get(x_205, 2);
lean_dec(x_285);
x_286 = lean_ctor_get(x_205, 1);
lean_dec(x_286);
x_287 = lean_ctor_get(x_205, 0);
lean_dec(x_287);
x_288 = 1;
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_203);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_288);
return x_205;
}
else
{
uint8_t x_289; lean_object* x_290; 
lean_dec(x_205);
x_289 = 1;
x_290 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_290, 0, x_203);
lean_ctor_set(x_290, 1, x_43);
lean_ctor_set(x_290, 2, x_44);
lean_ctor_set(x_290, 3, x_45);
lean_ctor_set_uint8(x_290, sizeof(void*)*4, x_289);
return x_290;
}
}
else
{
uint8_t x_291; 
x_291 = lean_ctor_get_uint8(x_282, sizeof(void*)*4);
if (x_291 == 0)
{
uint8_t x_292; 
lean_free_object(x_1);
x_292 = !lean_is_exclusive(x_203);
if (x_292 == 0)
{
lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_293 = lean_ctor_get(x_203, 1);
x_294 = lean_ctor_get(x_203, 2);
x_295 = lean_ctor_get(x_203, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_203, 0);
lean_dec(x_296);
x_297 = !lean_is_exclusive(x_282);
if (x_297 == 0)
{
lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_298 = lean_ctor_get(x_282, 0);
x_299 = lean_ctor_get(x_282, 1);
x_300 = lean_ctor_get(x_282, 2);
x_301 = lean_ctor_get(x_282, 3);
x_302 = 1;
lean_inc(x_205);
lean_ctor_set(x_282, 3, x_298);
lean_ctor_set(x_282, 2, x_294);
lean_ctor_set(x_282, 1, x_293);
lean_ctor_set(x_282, 0, x_205);
x_303 = !lean_is_exclusive(x_205);
if (x_303 == 0)
{
lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_205, 3);
lean_dec(x_304);
x_305 = lean_ctor_get(x_205, 2);
lean_dec(x_305);
x_306 = lean_ctor_get(x_205, 1);
lean_dec(x_306);
x_307 = lean_ctor_get(x_205, 0);
lean_dec(x_307);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
lean_ctor_set(x_205, 3, x_45);
lean_ctor_set(x_205, 2, x_44);
lean_ctor_set(x_205, 1, x_43);
lean_ctor_set(x_205, 0, x_301);
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_302);
x_308 = 0;
lean_ctor_set(x_203, 3, x_205);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_308);
return x_203;
}
else
{
lean_object* x_309; uint8_t x_310; 
lean_dec(x_205);
lean_ctor_set_uint8(x_282, sizeof(void*)*4, x_302);
x_309 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_309, 0, x_301);
lean_ctor_set(x_309, 1, x_43);
lean_ctor_set(x_309, 2, x_44);
lean_ctor_set(x_309, 3, x_45);
lean_ctor_set_uint8(x_309, sizeof(void*)*4, x_302);
x_310 = 0;
lean_ctor_set(x_203, 3, x_309);
lean_ctor_set(x_203, 2, x_300);
lean_ctor_set(x_203, 1, x_299);
lean_ctor_set(x_203, 0, x_282);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_310);
return x_203;
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_282, 0);
x_312 = lean_ctor_get(x_282, 1);
x_313 = lean_ctor_get(x_282, 2);
x_314 = lean_ctor_get(x_282, 3);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_282);
x_315 = 1;
lean_inc(x_205);
x_316 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_316, 0, x_205);
lean_ctor_set(x_316, 1, x_293);
lean_ctor_set(x_316, 2, x_294);
lean_ctor_set(x_316, 3, x_311);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_317 = x_205;
} else {
 lean_dec_ref(x_205);
 x_317 = lean_box(0);
}
lean_ctor_set_uint8(x_316, sizeof(void*)*4, x_315);
if (lean_is_scalar(x_317)) {
 x_318 = lean_alloc_ctor(1, 4, 1);
} else {
 x_318 = x_317;
}
lean_ctor_set(x_318, 0, x_314);
lean_ctor_set(x_318, 1, x_43);
lean_ctor_set(x_318, 2, x_44);
lean_ctor_set(x_318, 3, x_45);
lean_ctor_set_uint8(x_318, sizeof(void*)*4, x_315);
x_319 = 0;
lean_ctor_set(x_203, 3, x_318);
lean_ctor_set(x_203, 2, x_313);
lean_ctor_set(x_203, 1, x_312);
lean_ctor_set(x_203, 0, x_316);
lean_ctor_set_uint8(x_203, sizeof(void*)*4, x_319);
return x_203;
}
}
else
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; 
x_320 = lean_ctor_get(x_203, 1);
x_321 = lean_ctor_get(x_203, 2);
lean_inc(x_321);
lean_inc(x_320);
lean_dec(x_203);
x_322 = lean_ctor_get(x_282, 0);
lean_inc(x_322);
x_323 = lean_ctor_get(x_282, 1);
lean_inc(x_323);
x_324 = lean_ctor_get(x_282, 2);
lean_inc(x_324);
x_325 = lean_ctor_get(x_282, 3);
lean_inc(x_325);
if (lean_is_exclusive(x_282)) {
 lean_ctor_release(x_282, 0);
 lean_ctor_release(x_282, 1);
 lean_ctor_release(x_282, 2);
 lean_ctor_release(x_282, 3);
 x_326 = x_282;
} else {
 lean_dec_ref(x_282);
 x_326 = lean_box(0);
}
x_327 = 1;
lean_inc(x_205);
if (lean_is_scalar(x_326)) {
 x_328 = lean_alloc_ctor(1, 4, 1);
} else {
 x_328 = x_326;
}
lean_ctor_set(x_328, 0, x_205);
lean_ctor_set(x_328, 1, x_320);
lean_ctor_set(x_328, 2, x_321);
lean_ctor_set(x_328, 3, x_322);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_329 = x_205;
} else {
 lean_dec_ref(x_205);
 x_329 = lean_box(0);
}
lean_ctor_set_uint8(x_328, sizeof(void*)*4, x_327);
if (lean_is_scalar(x_329)) {
 x_330 = lean_alloc_ctor(1, 4, 1);
} else {
 x_330 = x_329;
}
lean_ctor_set(x_330, 0, x_325);
lean_ctor_set(x_330, 1, x_43);
lean_ctor_set(x_330, 2, x_44);
lean_ctor_set(x_330, 3, x_45);
lean_ctor_set_uint8(x_330, sizeof(void*)*4, x_327);
x_331 = 0;
x_332 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_332, 0, x_328);
lean_ctor_set(x_332, 1, x_323);
lean_ctor_set(x_332, 2, x_324);
lean_ctor_set(x_332, 3, x_330);
lean_ctor_set_uint8(x_332, sizeof(void*)*4, x_331);
return x_332;
}
}
else
{
uint8_t x_333; 
x_333 = !lean_is_exclusive(x_203);
if (x_333 == 0)
{
lean_object* x_334; lean_object* x_335; uint8_t x_336; 
x_334 = lean_ctor_get(x_203, 3);
lean_dec(x_334);
x_335 = lean_ctor_get(x_203, 0);
lean_dec(x_335);
x_336 = !lean_is_exclusive(x_205);
if (x_336 == 0)
{
uint8_t x_337; 
lean_ctor_set_uint8(x_205, sizeof(void*)*4, x_291);
x_337 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_337);
return x_1;
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; 
x_338 = lean_ctor_get(x_205, 0);
x_339 = lean_ctor_get(x_205, 1);
x_340 = lean_ctor_get(x_205, 2);
x_341 = lean_ctor_get(x_205, 3);
lean_inc(x_341);
lean_inc(x_340);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_205);
x_342 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_342, 0, x_338);
lean_ctor_set(x_342, 1, x_339);
lean_ctor_set(x_342, 2, x_340);
lean_ctor_set(x_342, 3, x_341);
lean_ctor_set_uint8(x_342, sizeof(void*)*4, x_291);
lean_ctor_set(x_203, 0, x_342);
x_343 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_343);
return x_1;
}
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; 
x_344 = lean_ctor_get(x_203, 1);
x_345 = lean_ctor_get(x_203, 2);
lean_inc(x_345);
lean_inc(x_344);
lean_dec(x_203);
x_346 = lean_ctor_get(x_205, 0);
lean_inc(x_346);
x_347 = lean_ctor_get(x_205, 1);
lean_inc(x_347);
x_348 = lean_ctor_get(x_205, 2);
lean_inc(x_348);
x_349 = lean_ctor_get(x_205, 3);
lean_inc(x_349);
if (lean_is_exclusive(x_205)) {
 lean_ctor_release(x_205, 0);
 lean_ctor_release(x_205, 1);
 lean_ctor_release(x_205, 2);
 lean_ctor_release(x_205, 3);
 x_350 = x_205;
} else {
 lean_dec_ref(x_205);
 x_350 = lean_box(0);
}
if (lean_is_scalar(x_350)) {
 x_351 = lean_alloc_ctor(1, 4, 1);
} else {
 x_351 = x_350;
}
lean_ctor_set(x_351, 0, x_346);
lean_ctor_set(x_351, 1, x_347);
lean_ctor_set(x_351, 2, x_348);
lean_ctor_set(x_351, 3, x_349);
lean_ctor_set_uint8(x_351, sizeof(void*)*4, x_291);
x_352 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_344);
lean_ctor_set(x_352, 2, x_345);
lean_ctor_set(x_352, 3, x_282);
lean_ctor_set_uint8(x_352, sizeof(void*)*4, x_204);
x_353 = 1;
lean_ctor_set(x_1, 0, x_352);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_353);
return x_1;
}
}
}
}
}
}
else
{
uint8_t x_354; 
x_354 = 1;
lean_ctor_set(x_1, 0, x_203);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_354);
return x_1;
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint64_t x_359; uint8_t x_360; 
x_355 = lean_ctor_get(x_1, 0);
x_356 = lean_ctor_get(x_1, 1);
x_357 = lean_ctor_get(x_1, 2);
x_358 = lean_ctor_get(x_1, 3);
lean_inc(x_358);
lean_inc(x_357);
lean_inc(x_356);
lean_inc(x_355);
lean_dec(x_1);
x_359 = lean_unbox_uint64(x_356);
x_360 = lean_uint64_dec_lt(x_2, x_359);
if (x_360 == 0)
{
uint64_t x_361; uint8_t x_362; 
x_361 = lean_unbox_uint64(x_356);
x_362 = lean_uint64_dec_eq(x_2, x_361);
if (x_362 == 0)
{
lean_object* x_363; uint8_t x_364; 
x_363 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_358, x_2, x_3);
x_364 = lean_ctor_get_uint8(x_363, sizeof(void*)*4);
if (x_364 == 0)
{
lean_object* x_365; 
x_365 = lean_ctor_get(x_363, 0);
lean_inc(x_365);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_366; 
x_366 = lean_ctor_get(x_363, 3);
lean_inc(x_366);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; 
x_367 = lean_ctor_get(x_363, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_363, 2);
lean_inc(x_368);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_369 = x_363;
} else {
 lean_dec_ref(x_363);
 x_369 = lean_box(0);
}
if (lean_is_scalar(x_369)) {
 x_370 = lean_alloc_ctor(1, 4, 1);
} else {
 x_370 = x_369;
}
lean_ctor_set(x_370, 0, x_366);
lean_ctor_set(x_370, 1, x_367);
lean_ctor_set(x_370, 2, x_368);
lean_ctor_set(x_370, 3, x_366);
lean_ctor_set_uint8(x_370, sizeof(void*)*4, x_364);
x_371 = 1;
x_372 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_372, 0, x_355);
lean_ctor_set(x_372, 1, x_356);
lean_ctor_set(x_372, 2, x_357);
lean_ctor_set(x_372, 3, x_370);
lean_ctor_set_uint8(x_372, sizeof(void*)*4, x_371);
return x_372;
}
else
{
uint8_t x_373; 
x_373 = lean_ctor_get_uint8(x_366, sizeof(void*)*4);
if (x_373 == 0)
{
lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; lean_object* x_383; lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_374 = lean_ctor_get(x_363, 1);
lean_inc(x_374);
x_375 = lean_ctor_get(x_363, 2);
lean_inc(x_375);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_376 = x_363;
} else {
 lean_dec_ref(x_363);
 x_376 = lean_box(0);
}
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_ctor_get(x_366, 1);
lean_inc(x_378);
x_379 = lean_ctor_get(x_366, 2);
lean_inc(x_379);
x_380 = lean_ctor_get(x_366, 3);
lean_inc(x_380);
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_381 = x_366;
} else {
 lean_dec_ref(x_366);
 x_381 = lean_box(0);
}
x_382 = 1;
if (lean_is_scalar(x_381)) {
 x_383 = lean_alloc_ctor(1, 4, 1);
} else {
 x_383 = x_381;
}
lean_ctor_set(x_383, 0, x_355);
lean_ctor_set(x_383, 1, x_356);
lean_ctor_set(x_383, 2, x_357);
lean_ctor_set(x_383, 3, x_365);
lean_ctor_set_uint8(x_383, sizeof(void*)*4, x_382);
if (lean_is_scalar(x_376)) {
 x_384 = lean_alloc_ctor(1, 4, 1);
} else {
 x_384 = x_376;
}
lean_ctor_set(x_384, 0, x_377);
lean_ctor_set(x_384, 1, x_378);
lean_ctor_set(x_384, 2, x_379);
lean_ctor_set(x_384, 3, x_380);
lean_ctor_set_uint8(x_384, sizeof(void*)*4, x_382);
x_385 = 0;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_383);
lean_ctor_set(x_386, 1, x_374);
lean_ctor_set(x_386, 2, x_375);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; uint8_t x_388; lean_object* x_389; 
if (lean_is_exclusive(x_366)) {
 lean_ctor_release(x_366, 0);
 lean_ctor_release(x_366, 1);
 lean_ctor_release(x_366, 2);
 lean_ctor_release(x_366, 3);
 x_387 = x_366;
} else {
 lean_dec_ref(x_366);
 x_387 = lean_box(0);
}
x_388 = 1;
if (lean_is_scalar(x_387)) {
 x_389 = lean_alloc_ctor(1, 4, 1);
} else {
 x_389 = x_387;
}
lean_ctor_set(x_389, 0, x_355);
lean_ctor_set(x_389, 1, x_356);
lean_ctor_set(x_389, 2, x_357);
lean_ctor_set(x_389, 3, x_363);
lean_ctor_set_uint8(x_389, sizeof(void*)*4, x_388);
return x_389;
}
}
}
else
{
uint8_t x_390; 
x_390 = lean_ctor_get_uint8(x_365, sizeof(void*)*4);
if (x_390 == 0)
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; lean_object* x_404; 
x_391 = lean_ctor_get(x_363, 1);
lean_inc(x_391);
x_392 = lean_ctor_get(x_363, 2);
lean_inc(x_392);
x_393 = lean_ctor_get(x_363, 3);
lean_inc(x_393);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_394 = x_363;
} else {
 lean_dec_ref(x_363);
 x_394 = lean_box(0);
}
x_395 = lean_ctor_get(x_365, 0);
lean_inc(x_395);
x_396 = lean_ctor_get(x_365, 1);
lean_inc(x_396);
x_397 = lean_ctor_get(x_365, 2);
lean_inc(x_397);
x_398 = lean_ctor_get(x_365, 3);
lean_inc(x_398);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_399 = x_365;
} else {
 lean_dec_ref(x_365);
 x_399 = lean_box(0);
}
x_400 = 1;
if (lean_is_scalar(x_399)) {
 x_401 = lean_alloc_ctor(1, 4, 1);
} else {
 x_401 = x_399;
}
lean_ctor_set(x_401, 0, x_355);
lean_ctor_set(x_401, 1, x_356);
lean_ctor_set(x_401, 2, x_357);
lean_ctor_set(x_401, 3, x_395);
lean_ctor_set_uint8(x_401, sizeof(void*)*4, x_400);
if (lean_is_scalar(x_394)) {
 x_402 = lean_alloc_ctor(1, 4, 1);
} else {
 x_402 = x_394;
}
lean_ctor_set(x_402, 0, x_398);
lean_ctor_set(x_402, 1, x_391);
lean_ctor_set(x_402, 2, x_392);
lean_ctor_set(x_402, 3, x_393);
lean_ctor_set_uint8(x_402, sizeof(void*)*4, x_400);
x_403 = 0;
x_404 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_404, 0, x_401);
lean_ctor_set(x_404, 1, x_396);
lean_ctor_set(x_404, 2, x_397);
lean_ctor_set(x_404, 3, x_402);
lean_ctor_set_uint8(x_404, sizeof(void*)*4, x_403);
return x_404;
}
else
{
lean_object* x_405; 
x_405 = lean_ctor_get(x_363, 3);
lean_inc(x_405);
if (lean_obj_tag(x_405) == 0)
{
lean_object* x_406; uint8_t x_407; lean_object* x_408; 
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_406 = x_365;
} else {
 lean_dec_ref(x_365);
 x_406 = lean_box(0);
}
x_407 = 1;
if (lean_is_scalar(x_406)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_406;
}
lean_ctor_set(x_408, 0, x_355);
lean_ctor_set(x_408, 1, x_356);
lean_ctor_set(x_408, 2, x_357);
lean_ctor_set(x_408, 3, x_363);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_407);
return x_408;
}
else
{
uint8_t x_409; 
x_409 = lean_ctor_get_uint8(x_405, sizeof(void*)*4);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; 
x_410 = lean_ctor_get(x_363, 1);
lean_inc(x_410);
x_411 = lean_ctor_get(x_363, 2);
lean_inc(x_411);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_412 = x_363;
} else {
 lean_dec_ref(x_363);
 x_412 = lean_box(0);
}
x_413 = lean_ctor_get(x_405, 0);
lean_inc(x_413);
x_414 = lean_ctor_get(x_405, 1);
lean_inc(x_414);
x_415 = lean_ctor_get(x_405, 2);
lean_inc(x_415);
x_416 = lean_ctor_get(x_405, 3);
lean_inc(x_416);
if (lean_is_exclusive(x_405)) {
 lean_ctor_release(x_405, 0);
 lean_ctor_release(x_405, 1);
 lean_ctor_release(x_405, 2);
 lean_ctor_release(x_405, 3);
 x_417 = x_405;
} else {
 lean_dec_ref(x_405);
 x_417 = lean_box(0);
}
x_418 = 1;
lean_inc(x_365);
if (lean_is_scalar(x_417)) {
 x_419 = lean_alloc_ctor(1, 4, 1);
} else {
 x_419 = x_417;
}
lean_ctor_set(x_419, 0, x_355);
lean_ctor_set(x_419, 1, x_356);
lean_ctor_set(x_419, 2, x_357);
lean_ctor_set(x_419, 3, x_365);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_420 = x_365;
} else {
 lean_dec_ref(x_365);
 x_420 = lean_box(0);
}
lean_ctor_set_uint8(x_419, sizeof(void*)*4, x_418);
if (lean_is_scalar(x_420)) {
 x_421 = lean_alloc_ctor(1, 4, 1);
} else {
 x_421 = x_420;
}
lean_ctor_set(x_421, 0, x_413);
lean_ctor_set(x_421, 1, x_414);
lean_ctor_set(x_421, 2, x_415);
lean_ctor_set(x_421, 3, x_416);
lean_ctor_set_uint8(x_421, sizeof(void*)*4, x_418);
x_422 = 0;
if (lean_is_scalar(x_412)) {
 x_423 = lean_alloc_ctor(1, 4, 1);
} else {
 x_423 = x_412;
}
lean_ctor_set(x_423, 0, x_419);
lean_ctor_set(x_423, 1, x_410);
lean_ctor_set(x_423, 2, x_411);
lean_ctor_set(x_423, 3, x_421);
lean_ctor_set_uint8(x_423, sizeof(void*)*4, x_422);
return x_423;
}
else
{
lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; lean_object* x_435; 
x_424 = lean_ctor_get(x_363, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_363, 2);
lean_inc(x_425);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 lean_ctor_release(x_363, 2);
 lean_ctor_release(x_363, 3);
 x_426 = x_363;
} else {
 lean_dec_ref(x_363);
 x_426 = lean_box(0);
}
x_427 = lean_ctor_get(x_365, 0);
lean_inc(x_427);
x_428 = lean_ctor_get(x_365, 1);
lean_inc(x_428);
x_429 = lean_ctor_get(x_365, 2);
lean_inc(x_429);
x_430 = lean_ctor_get(x_365, 3);
lean_inc(x_430);
if (lean_is_exclusive(x_365)) {
 lean_ctor_release(x_365, 0);
 lean_ctor_release(x_365, 1);
 lean_ctor_release(x_365, 2);
 lean_ctor_release(x_365, 3);
 x_431 = x_365;
} else {
 lean_dec_ref(x_365);
 x_431 = lean_box(0);
}
if (lean_is_scalar(x_431)) {
 x_432 = lean_alloc_ctor(1, 4, 1);
} else {
 x_432 = x_431;
}
lean_ctor_set(x_432, 0, x_427);
lean_ctor_set(x_432, 1, x_428);
lean_ctor_set(x_432, 2, x_429);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_409);
if (lean_is_scalar(x_426)) {
 x_433 = lean_alloc_ctor(1, 4, 1);
} else {
 x_433 = x_426;
}
lean_ctor_set(x_433, 0, x_432);
lean_ctor_set(x_433, 1, x_424);
lean_ctor_set(x_433, 2, x_425);
lean_ctor_set(x_433, 3, x_405);
lean_ctor_set_uint8(x_433, sizeof(void*)*4, x_364);
x_434 = 1;
x_435 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_435, 0, x_355);
lean_ctor_set(x_435, 1, x_356);
lean_ctor_set(x_435, 2, x_357);
lean_ctor_set(x_435, 3, x_433);
lean_ctor_set_uint8(x_435, sizeof(void*)*4, x_434);
return x_435;
}
}
}
}
}
else
{
uint8_t x_436; lean_object* x_437; 
x_436 = 1;
x_437 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_437, 0, x_355);
lean_ctor_set(x_437, 1, x_356);
lean_ctor_set(x_437, 2, x_357);
lean_ctor_set(x_437, 3, x_363);
lean_ctor_set_uint8(x_437, sizeof(void*)*4, x_436);
return x_437;
}
}
else
{
uint8_t x_438; lean_object* x_439; lean_object* x_440; 
lean_dec(x_357);
lean_dec(x_356);
x_438 = 1;
x_439 = lean_box_uint64(x_2);
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_355);
lean_ctor_set(x_440, 1, x_439);
lean_ctor_set(x_440, 2, x_3);
lean_ctor_set(x_440, 3, x_358);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_438);
return x_440;
}
}
else
{
lean_object* x_441; uint8_t x_442; 
x_441 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_355, x_2, x_3);
x_442 = lean_ctor_get_uint8(x_441, sizeof(void*)*4);
if (x_442 == 0)
{
lean_object* x_443; 
x_443 = lean_ctor_get(x_441, 0);
lean_inc(x_443);
if (lean_obj_tag(x_443) == 0)
{
lean_object* x_444; 
x_444 = lean_ctor_get(x_441, 3);
lean_inc(x_444);
if (lean_obj_tag(x_444) == 0)
{
lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; lean_object* x_450; 
x_445 = lean_ctor_get(x_441, 1);
lean_inc(x_445);
x_446 = lean_ctor_get(x_441, 2);
lean_inc(x_446);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_447 = x_441;
} else {
 lean_dec_ref(x_441);
 x_447 = lean_box(0);
}
if (lean_is_scalar(x_447)) {
 x_448 = lean_alloc_ctor(1, 4, 1);
} else {
 x_448 = x_447;
}
lean_ctor_set(x_448, 0, x_444);
lean_ctor_set(x_448, 1, x_445);
lean_ctor_set(x_448, 2, x_446);
lean_ctor_set(x_448, 3, x_444);
lean_ctor_set_uint8(x_448, sizeof(void*)*4, x_442);
x_449 = 1;
x_450 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_450, 0, x_448);
lean_ctor_set(x_450, 1, x_356);
lean_ctor_set(x_450, 2, x_357);
lean_ctor_set(x_450, 3, x_358);
lean_ctor_set_uint8(x_450, sizeof(void*)*4, x_449);
return x_450;
}
else
{
uint8_t x_451; 
x_451 = lean_ctor_get_uint8(x_444, sizeof(void*)*4);
if (x_451 == 0)
{
lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; lean_object* x_464; 
x_452 = lean_ctor_get(x_441, 1);
lean_inc(x_452);
x_453 = lean_ctor_get(x_441, 2);
lean_inc(x_453);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_454 = x_441;
} else {
 lean_dec_ref(x_441);
 x_454 = lean_box(0);
}
x_455 = lean_ctor_get(x_444, 0);
lean_inc(x_455);
x_456 = lean_ctor_get(x_444, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_444, 2);
lean_inc(x_457);
x_458 = lean_ctor_get(x_444, 3);
lean_inc(x_458);
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_459 = x_444;
} else {
 lean_dec_ref(x_444);
 x_459 = lean_box(0);
}
x_460 = 1;
if (lean_is_scalar(x_459)) {
 x_461 = lean_alloc_ctor(1, 4, 1);
} else {
 x_461 = x_459;
}
lean_ctor_set(x_461, 0, x_443);
lean_ctor_set(x_461, 1, x_452);
lean_ctor_set(x_461, 2, x_453);
lean_ctor_set(x_461, 3, x_455);
lean_ctor_set_uint8(x_461, sizeof(void*)*4, x_460);
if (lean_is_scalar(x_454)) {
 x_462 = lean_alloc_ctor(1, 4, 1);
} else {
 x_462 = x_454;
}
lean_ctor_set(x_462, 0, x_458);
lean_ctor_set(x_462, 1, x_356);
lean_ctor_set(x_462, 2, x_357);
lean_ctor_set(x_462, 3, x_358);
lean_ctor_set_uint8(x_462, sizeof(void*)*4, x_460);
x_463 = 0;
x_464 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_464, 0, x_461);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_463);
return x_464;
}
else
{
lean_object* x_465; uint8_t x_466; lean_object* x_467; 
if (lean_is_exclusive(x_444)) {
 lean_ctor_release(x_444, 0);
 lean_ctor_release(x_444, 1);
 lean_ctor_release(x_444, 2);
 lean_ctor_release(x_444, 3);
 x_465 = x_444;
} else {
 lean_dec_ref(x_444);
 x_465 = lean_box(0);
}
x_466 = 1;
if (lean_is_scalar(x_465)) {
 x_467 = lean_alloc_ctor(1, 4, 1);
} else {
 x_467 = x_465;
}
lean_ctor_set(x_467, 0, x_441);
lean_ctor_set(x_467, 1, x_356);
lean_ctor_set(x_467, 2, x_357);
lean_ctor_set(x_467, 3, x_358);
lean_ctor_set_uint8(x_467, sizeof(void*)*4, x_466);
return x_467;
}
}
}
else
{
uint8_t x_468; 
x_468 = lean_ctor_get_uint8(x_443, sizeof(void*)*4);
if (x_468 == 0)
{
lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; 
x_469 = lean_ctor_get(x_441, 1);
lean_inc(x_469);
x_470 = lean_ctor_get(x_441, 2);
lean_inc(x_470);
x_471 = lean_ctor_get(x_441, 3);
lean_inc(x_471);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_472 = x_441;
} else {
 lean_dec_ref(x_441);
 x_472 = lean_box(0);
}
x_473 = lean_ctor_get(x_443, 0);
lean_inc(x_473);
x_474 = lean_ctor_get(x_443, 1);
lean_inc(x_474);
x_475 = lean_ctor_get(x_443, 2);
lean_inc(x_475);
x_476 = lean_ctor_get(x_443, 3);
lean_inc(x_476);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_477 = x_443;
} else {
 lean_dec_ref(x_443);
 x_477 = lean_box(0);
}
x_478 = 1;
if (lean_is_scalar(x_477)) {
 x_479 = lean_alloc_ctor(1, 4, 1);
} else {
 x_479 = x_477;
}
lean_ctor_set(x_479, 0, x_473);
lean_ctor_set(x_479, 1, x_474);
lean_ctor_set(x_479, 2, x_475);
lean_ctor_set(x_479, 3, x_476);
lean_ctor_set_uint8(x_479, sizeof(void*)*4, x_478);
if (lean_is_scalar(x_472)) {
 x_480 = lean_alloc_ctor(1, 4, 1);
} else {
 x_480 = x_472;
}
lean_ctor_set(x_480, 0, x_471);
lean_ctor_set(x_480, 1, x_356);
lean_ctor_set(x_480, 2, x_357);
lean_ctor_set(x_480, 3, x_358);
lean_ctor_set_uint8(x_480, sizeof(void*)*4, x_478);
x_481 = 0;
x_482 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_482, 0, x_479);
lean_ctor_set(x_482, 1, x_469);
lean_ctor_set(x_482, 2, x_470);
lean_ctor_set(x_482, 3, x_480);
lean_ctor_set_uint8(x_482, sizeof(void*)*4, x_481);
return x_482;
}
else
{
lean_object* x_483; 
x_483 = lean_ctor_get(x_441, 3);
lean_inc(x_483);
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_484; uint8_t x_485; lean_object* x_486; 
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_484 = x_443;
} else {
 lean_dec_ref(x_443);
 x_484 = lean_box(0);
}
x_485 = 1;
if (lean_is_scalar(x_484)) {
 x_486 = lean_alloc_ctor(1, 4, 1);
} else {
 x_486 = x_484;
}
lean_ctor_set(x_486, 0, x_441);
lean_ctor_set(x_486, 1, x_356);
lean_ctor_set(x_486, 2, x_357);
lean_ctor_set(x_486, 3, x_358);
lean_ctor_set_uint8(x_486, sizeof(void*)*4, x_485);
return x_486;
}
else
{
uint8_t x_487; 
x_487 = lean_ctor_get_uint8(x_483, sizeof(void*)*4);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; 
x_488 = lean_ctor_get(x_441, 1);
lean_inc(x_488);
x_489 = lean_ctor_get(x_441, 2);
lean_inc(x_489);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_490 = x_441;
} else {
 lean_dec_ref(x_441);
 x_490 = lean_box(0);
}
x_491 = lean_ctor_get(x_483, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_483, 1);
lean_inc(x_492);
x_493 = lean_ctor_get(x_483, 2);
lean_inc(x_493);
x_494 = lean_ctor_get(x_483, 3);
lean_inc(x_494);
if (lean_is_exclusive(x_483)) {
 lean_ctor_release(x_483, 0);
 lean_ctor_release(x_483, 1);
 lean_ctor_release(x_483, 2);
 lean_ctor_release(x_483, 3);
 x_495 = x_483;
} else {
 lean_dec_ref(x_483);
 x_495 = lean_box(0);
}
x_496 = 1;
lean_inc(x_443);
if (lean_is_scalar(x_495)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_495;
}
lean_ctor_set(x_497, 0, x_443);
lean_ctor_set(x_497, 1, x_488);
lean_ctor_set(x_497, 2, x_489);
lean_ctor_set(x_497, 3, x_491);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_498 = x_443;
} else {
 lean_dec_ref(x_443);
 x_498 = lean_box(0);
}
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_496);
if (lean_is_scalar(x_498)) {
 x_499 = lean_alloc_ctor(1, 4, 1);
} else {
 x_499 = x_498;
}
lean_ctor_set(x_499, 0, x_494);
lean_ctor_set(x_499, 1, x_356);
lean_ctor_set(x_499, 2, x_357);
lean_ctor_set(x_499, 3, x_358);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_496);
x_500 = 0;
if (lean_is_scalar(x_490)) {
 x_501 = lean_alloc_ctor(1, 4, 1);
} else {
 x_501 = x_490;
}
lean_ctor_set(x_501, 0, x_497);
lean_ctor_set(x_501, 1, x_492);
lean_ctor_set(x_501, 2, x_493);
lean_ctor_set(x_501, 3, x_499);
lean_ctor_set_uint8(x_501, sizeof(void*)*4, x_500);
return x_501;
}
else
{
lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; uint8_t x_512; lean_object* x_513; 
x_502 = lean_ctor_get(x_441, 1);
lean_inc(x_502);
x_503 = lean_ctor_get(x_441, 2);
lean_inc(x_503);
if (lean_is_exclusive(x_441)) {
 lean_ctor_release(x_441, 0);
 lean_ctor_release(x_441, 1);
 lean_ctor_release(x_441, 2);
 lean_ctor_release(x_441, 3);
 x_504 = x_441;
} else {
 lean_dec_ref(x_441);
 x_504 = lean_box(0);
}
x_505 = lean_ctor_get(x_443, 0);
lean_inc(x_505);
x_506 = lean_ctor_get(x_443, 1);
lean_inc(x_506);
x_507 = lean_ctor_get(x_443, 2);
lean_inc(x_507);
x_508 = lean_ctor_get(x_443, 3);
lean_inc(x_508);
if (lean_is_exclusive(x_443)) {
 lean_ctor_release(x_443, 0);
 lean_ctor_release(x_443, 1);
 lean_ctor_release(x_443, 2);
 lean_ctor_release(x_443, 3);
 x_509 = x_443;
} else {
 lean_dec_ref(x_443);
 x_509 = lean_box(0);
}
if (lean_is_scalar(x_509)) {
 x_510 = lean_alloc_ctor(1, 4, 1);
} else {
 x_510 = x_509;
}
lean_ctor_set(x_510, 0, x_505);
lean_ctor_set(x_510, 1, x_506);
lean_ctor_set(x_510, 2, x_507);
lean_ctor_set(x_510, 3, x_508);
lean_ctor_set_uint8(x_510, sizeof(void*)*4, x_487);
if (lean_is_scalar(x_504)) {
 x_511 = lean_alloc_ctor(1, 4, 1);
} else {
 x_511 = x_504;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_502);
lean_ctor_set(x_511, 2, x_503);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set_uint8(x_511, sizeof(void*)*4, x_442);
x_512 = 1;
x_513 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_513, 0, x_511);
lean_ctor_set(x_513, 1, x_356);
lean_ctor_set(x_513, 2, x_357);
lean_ctor_set(x_513, 3, x_358);
lean_ctor_set_uint8(x_513, sizeof(void*)*4, x_512);
return x_513;
}
}
}
}
}
else
{
uint8_t x_514; lean_object* x_515; 
x_514 = 1;
x_515 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_515, 0, x_441);
lean_ctor_set(x_515, 1, x_356);
lean_ctor_set(x_515, 2, x_357);
lean_ctor_set(x_515, 3, x_358);
lean_ctor_set_uint8(x_515, sizeof(void*)*4, x_514);
return x_515;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(lean_object* x_1, uint64_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Lean_RBNode_isRed___rarg(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_1, x_2, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_1, x_2, x_3);
x_7 = l_Lean_RBNode_setBlack___rarg(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
x_7 = lean_box(0);
x_8 = lean_unbox_uint64(x_4);
lean_inc(x_1);
x_9 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(x_1, x_8);
if (lean_obj_tag(x_9) == 0)
{
uint64_t x_10; lean_object* x_11; 
lean_ctor_set_tag(x_2, 1);
lean_ctor_set(x_2, 1, x_7);
lean_ctor_set(x_2, 0, x_6);
x_10 = lean_unbox_uint64(x_4);
lean_dec(x_4);
x_11 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_1, x_10, x_2);
return x_11;
}
else
{
lean_object* x_12; uint64_t x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_9, 0);
lean_inc(x_12);
lean_dec(x_9);
lean_ctor_set_tag(x_2, 1);
lean_ctor_set(x_2, 1, x_12);
lean_ctor_set(x_2, 0, x_6);
x_13 = lean_unbox_uint64(x_4);
lean_dec(x_4);
x_14 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_1, x_13, x_2);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; lean_object* x_20; 
x_15 = lean_ctor_get(x_2, 0);
x_16 = lean_ctor_get(x_2, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_2);
x_17 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = lean_box(0);
x_19 = lean_unbox_uint64(x_15);
lean_inc(x_1);
x_20 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(x_1, x_19);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; uint64_t x_22; lean_object* x_23; 
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_17);
lean_ctor_set(x_21, 1, x_18);
x_22 = lean_unbox_uint64(x_15);
lean_dec(x_15);
x_23 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_1, x_22, x_21);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; 
x_24 = lean_ctor_get(x_20, 0);
lean_inc(x_24);
lean_dec(x_20);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_17);
lean_ctor_set(x_25, 1, x_24);
x_26 = lean_unbox_uint64(x_15);
lean_dec(x_15);
x_27 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_1, x_26, x_25);
return x_27;
}
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("panelWidgetsExt", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____lambda__1), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3;
x_4 = l_Lean_Widget_instToModuleModule___closed__1;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_1);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4;
x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_4 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_ins___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__3(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint64_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_5 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Widget_evalPanelWidgets___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_8; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_2);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
else
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_dec(x_1);
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_box(0);
x_13 = l_Lean_Expr_const___override(x_11, x_12);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_14 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe(x_13, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_array_push(x_2, x_15);
x_1 = x_10;
x_2 = x_17;
x_7 = x_16;
goto _start;
}
else
{
uint8_t x_19; 
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_19 = !lean_is_exclusive(x_14);
if (x_19 == 0)
{
return x_14;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_14, 0);
x_21 = lean_ctor_get(x_14, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_14);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_1, 1);
lean_inc(x_23);
lean_dec(x_1);
x_24 = lean_ctor_get(x_9, 0);
lean_inc(x_24);
lean_dec(x_9);
x_25 = lean_array_push(x_2, x_24);
x_1 = x_23;
x_2 = x_25;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Widget_evalPanelWidgets___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_2);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_1, 2);
lean_inc(x_11);
x_12 = lean_ctor_get(x_1, 3);
lean_inc(x_12);
lean_dec(x_1);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_13 = l_Lean_RBNode_forIn_visit___at_Lean_Widget_evalPanelWidgets___spec__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_15 = !lean_is_exclusive(x_13);
if (x_15 == 0)
{
lean_object* x_16; 
x_16 = lean_ctor_get(x_13, 0);
lean_dec(x_16);
return x_13;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_13, 1);
lean_inc(x_17);
lean_dec(x_13);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_14);
lean_ctor_set(x_18, 1, x_17);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_13, 1);
lean_inc(x_19);
lean_dec(x_13);
x_20 = lean_ctor_get(x_14, 0);
lean_inc(x_20);
lean_dec(x_14);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_21 = l_List_forIn_loop___at_Lean_Widget_evalPanelWidgets___spec__1(x_11, x_20, x_3, x_4, x_5, x_6, x_19);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_1 = x_12;
x_2 = x_22;
x_7 = x_23;
goto _start;
}
else
{
uint8_t x_25; 
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_25 = !lean_is_exclusive(x_21);
if (x_25 == 0)
{
return x_21;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_21, 0);
x_27 = lean_ctor_get(x_21, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_21);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
}
else
{
uint8_t x_29; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_29 = !lean_is_exclusive(x_13);
if (x_29 == 0)
{
return x_13;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_13, 0);
x_31 = lean_ctor_get(x_13, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_13);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
}
}
static lean_object* _init_l_Lean_Widget_evalPanelWidgets___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_panelWidgetsExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_evalPanelWidgets(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_6 = lean_st_ref_get(x_4, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_box(0);
x_11 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_12 = l_Lean_ScopedEnvExtension_getState___rarg(x_10, x_11, x_9);
lean_dec(x_9);
x_13 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
x_14 = l_Lean_RBNode_forIn_visit___at_Lean_Widget_evalPanelWidgets___spec__2(x_12, x_13, x_1, x_2, x_3, x_4, x_8);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec(x_16);
lean_ctor_set(x_14, 0, x_17);
return x_14;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_18 = lean_ctor_get(x_14, 0);
x_19 = lean_ctor_get(x_14, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_14);
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
lean_dec(x_18);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_14);
if (x_22 == 0)
{
return x_14;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_14, 0);
x_24 = lean_ctor_get(x_14, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_14);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint64_t x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_6 = lean_box_uint64(x_4);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_9 = 0;
x_10 = l_Lean_ScopedEnvExtension_add___rarg(x_1, x_3, x_2, x_8, x_7, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetGlobal___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint64_t x_6; lean_object* x_7; 
x_6 = lean_unbox_uint64(x_4);
lean_dec(x_4);
x_7 = l_Lean_Widget_addPanelWidgetGlobal___rarg(x_1, x_2, x_3, x_6, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint64_t x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_6 = lean_box_uint64(x_4);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_9 = 2;
x_10 = l_Lean_ScopedEnvExtension_add___rarg(x_1, x_3, x_2, x_8, x_7, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetScoped___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint64_t x_6; lean_object* x_7; 
x_6 = lean_unbox_uint64(x_4);
lean_dec(x_4);
x_7 = l_Lean_Widget_addPanelWidgetScoped___rarg(x_1, x_2, x_3, x_6, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
x_4 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_4, 0, x_1);
x_5 = lean_box(0);
lean_inc(x_2);
x_6 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__1(x_2, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_5);
x_8 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_2, x_3, x_7);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_4);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_RBNode_insert___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____spec__2(x_2, x_3, x_10);
return x_11;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__1), 2, 1);
lean_closure_set(x_3, 0, x_1);
x_4 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_5 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_4, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__2), 2, 1);
lean_closure_set(x_4, 0, x_2);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetLocal___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_addPanelWidgetLocal(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(uint64_t x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint64_t x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_2, 0);
x_6 = lean_ctor_get(x_2, 1);
x_7 = lean_ctor_get(x_2, 2);
x_8 = lean_ctor_get(x_2, 3);
x_9 = lean_unbox_uint64(x_6);
x_10 = lean_uint64_dec_lt(x_1, x_9);
if (x_10 == 0)
{
uint64_t x_11; uint8_t x_12; 
x_11 = lean_unbox_uint64(x_6);
x_12 = lean_uint64_dec_eq(x_1, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
x_13 = l_Lean_RBNode_isBlack___rarg(x_8);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_8);
x_15 = 0;
lean_ctor_set(x_2, 3, x_14);
lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_15);
return x_2;
}
else
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_2);
x_16 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_8);
x_17 = l_Lean_RBNode_balRight___rarg(x_5, x_6, x_7, x_16);
return x_17;
}
}
else
{
lean_object* x_18; 
lean_free_object(x_2);
lean_dec(x_7);
lean_dec(x_6);
x_18 = l_Lean_RBNode_appendTrees___rarg(x_5, x_8);
return x_18;
}
}
else
{
uint8_t x_19; 
x_19 = l_Lean_RBNode_isBlack___rarg(x_5);
if (x_19 == 0)
{
lean_object* x_20; uint8_t x_21; 
x_20 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_5);
x_21 = 0;
lean_ctor_set(x_2, 0, x_20);
lean_ctor_set_uint8(x_2, sizeof(void*)*4, x_21);
return x_2;
}
else
{
lean_object* x_22; lean_object* x_23; 
lean_free_object(x_2);
x_22 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_5);
x_23 = l_Lean_RBNode_balLeft___rarg(x_22, x_6, x_7, x_8);
return x_23;
}
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_2, 0);
x_25 = lean_ctor_get(x_2, 1);
x_26 = lean_ctor_get(x_2, 2);
x_27 = lean_ctor_get(x_2, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_2);
x_28 = lean_unbox_uint64(x_25);
x_29 = lean_uint64_dec_lt(x_1, x_28);
if (x_29 == 0)
{
uint64_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint64(x_25);
x_31 = lean_uint64_dec_eq(x_1, x_30);
if (x_31 == 0)
{
uint8_t x_32; 
x_32 = l_Lean_RBNode_isBlack___rarg(x_27);
if (x_32 == 0)
{
lean_object* x_33; uint8_t x_34; lean_object* x_35; 
x_33 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_27);
x_34 = 0;
x_35 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_35, 0, x_24);
lean_ctor_set(x_35, 1, x_25);
lean_ctor_set(x_35, 2, x_26);
lean_ctor_set(x_35, 3, x_33);
lean_ctor_set_uint8(x_35, sizeof(void*)*4, x_34);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; 
x_36 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_27);
x_37 = l_Lean_RBNode_balRight___rarg(x_24, x_25, x_26, x_36);
return x_37;
}
}
else
{
lean_object* x_38; 
lean_dec(x_26);
lean_dec(x_25);
x_38 = l_Lean_RBNode_appendTrees___rarg(x_24, x_27);
return x_38;
}
}
else
{
uint8_t x_39; 
x_39 = l_Lean_RBNode_isBlack___rarg(x_24);
if (x_39 == 0)
{
lean_object* x_40; uint8_t x_41; lean_object* x_42; 
x_40 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_24);
x_41 = 0;
x_42 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set(x_42, 1, x_25);
lean_ctor_set(x_42, 2, x_26);
lean_ctor_set(x_42, 3, x_27);
lean_ctor_set_uint8(x_42, sizeof(void*)*4, x_41);
return x_42;
}
else
{
lean_object* x_43; lean_object* x_44; 
x_43 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_24);
x_44 = l_Lean_RBNode_balLeft___rarg(x_43, x_25, x_26, x_27);
return x_44;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1(uint64_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_1, x_2);
x_4 = l_Lean_RBNode_setBlack___rarg(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___lambda__1(uint64_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_box_uint64(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1___boxed), 2, 1);
lean_closure_set(x_4, 0, x_3);
x_5 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_6 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_5, x_2, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg(lean_object* x_1, uint64_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_box_uint64(x_2);
x_5 = lean_alloc_closure((void*)(l_Lean_Widget_erasePanelWidget___rarg___lambda__1___boxed), 2, 1);
lean_closure_set(x_5, 0, x_4);
x_6 = lean_apply_1(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Widget_erasePanelWidget___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_4 = l_Lean_RBNode_del___at_Lean_Widget_erasePanelWidget___spec__2(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_4 = l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_4 = l_Lean_Widget_erasePanelWidget___rarg___lambda__1(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint64(x_2);
lean_dec(x_2);
x_4 = l_Lean_Widget_erasePanelWidget___rarg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_erasePanelWidget(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_ctor_get(x_2, 5);
x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_5);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_5);
lean_ctor_set(x_9, 1, x_8);
lean_ctor_set_tag(x_6, 1);
lean_ctor_set(x_6, 0, x_9);
return x_6;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_6, 0);
x_11 = lean_ctor_get(x_6, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_6);
lean_inc(x_5);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_10);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_WidgetInstance_ofHash(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_st_ref_get(x_4, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = l_Lean_Widget_addBuiltinModule___closed__1;
x_11 = lean_st_ref_get(x_10, x_8);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_11, 1);
x_15 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_13, x_1);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_16 = lean_box(0);
x_17 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_18 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_16, x_17, x_9);
lean_dec(x_9);
x_19 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_18, x_1);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
lean_free_object(x_11);
lean_dec(x_2);
x_20 = lean_uint64_to_nat(x_1);
x_21 = l___private_Init_Data_Repr_0__Nat_reprFast(x_20);
x_22 = l_Lean_Widget_getWidgetSource___lambda__6___closed__1;
x_23 = lean_string_append(x_22, x_21);
lean_dec(x_21);
x_24 = l_Lean_Widget_getWidgetSource___lambda__6___closed__2;
x_25 = lean_string_append(x_23, x_24);
x_26 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = l_Lean_MessageData_ofFormat(x_26);
x_28 = l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1(x_27, x_3, x_4, x_14);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_19, 0);
lean_inc(x_29);
lean_dec(x_19);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
lean_dec(x_29);
x_31 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_2);
lean_ctor_set_uint64(x_31, sizeof(void*)*2, x_1);
lean_ctor_set(x_11, 0, x_31);
return x_11;
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
lean_dec(x_9);
x_32 = lean_ctor_get(x_15, 0);
lean_inc(x_32);
lean_dec(x_15);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec(x_32);
x_34 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_2);
lean_ctor_set_uint64(x_34, sizeof(void*)*2, x_1);
lean_ctor_set(x_11, 0, x_34);
return x_11;
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_11, 0);
x_36 = lean_ctor_get(x_11, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_11);
x_37 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__3(x_35, x_1);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_38 = lean_box(0);
x_39 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1;
x_40 = l_Lean_SimplePersistentEnvExtension_getState___rarg(x_38, x_39, x_9);
lean_dec(x_9);
x_41 = l_Lean_RBNode_find___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__1(x_40, x_1);
if (lean_obj_tag(x_41) == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
lean_dec(x_2);
x_42 = lean_uint64_to_nat(x_1);
x_43 = l___private_Init_Data_Repr_0__Nat_reprFast(x_42);
x_44 = l_Lean_Widget_getWidgetSource___lambda__6___closed__1;
x_45 = lean_string_append(x_44, x_43);
lean_dec(x_43);
x_46 = l_Lean_Widget_getWidgetSource___lambda__6___closed__2;
x_47 = lean_string_append(x_45, x_46);
x_48 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_48, 0, x_47);
x_49 = l_Lean_MessageData_ofFormat(x_48);
x_50 = l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1(x_49, x_3, x_4, x_36);
return x_50;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_51 = lean_ctor_get(x_41, 0);
lean_inc(x_51);
lean_dec(x_41);
x_52 = lean_ctor_get(x_51, 0);
lean_inc(x_52);
lean_dec(x_51);
x_53 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_2);
lean_ctor_set_uint64(x_53, sizeof(void*)*2, x_1);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_36);
return x_54;
}
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
lean_dec(x_9);
x_55 = lean_ctor_get(x_37, 0);
lean_inc(x_55);
lean_dec(x_37);
x_56 = lean_ctor_get(x_55, 0);
lean_inc(x_56);
lean_dec(x_55);
x_57 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_2);
lean_ctor_set_uint64(x_57, sizeof(void*)*2, x_1);
x_58 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_58, 0, x_57);
lean_ctor_set(x_58, 1, x_36);
return x_58;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_throwError___at_Lean_Widget_WidgetInstance_ofHash___spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_WidgetInstance_ofHash___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint64_t x_6; lean_object* x_7; 
x_6 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_7 = l_Lean_Widget_WidgetInstance_ofHash(x_6, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_savePanelWidgetInfo(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_WidgetInstance_ofHash(x_1, x_2, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_3);
x_11 = lean_alloc_ctor(7, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_realizeGlobalConstNoOverloadWithInfo___spec__3(x_11, x_4, x_5, x_9);
return x_12;
}
else
{
uint8_t x_13; 
lean_dec(x_3);
x_13 = !lean_is_exclusive(x_7);
if (x_13 == 0)
{
return x_7;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_7, 0);
x_15 = lean_ctor_get(x_7, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_7);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_savePanelWidgetInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint64_t x_7; lean_object* x_8; 
x_7 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_8 = l_Lean_Widget_savePanelWidgetInfo(x_7, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_8;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widgetInstanceSpec", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_widgetInstanceSpec___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("andthen", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ident", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__6;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optional", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("with ", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__10;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__12;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__13;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__11;
x_3 = l_Lean_Widget_widgetInstanceSpec___closed__14;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__9;
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__7;
x_3 = l_Lean_Widget_widgetInstanceSpec___closed__16;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__1;
x_2 = l_Lean_Widget_widgetInstanceSpec___closed__2;
x_3 = l_Lean_Widget_widgetInstanceSpec___closed__17;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetInstanceSpec() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__18;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("structInst", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("{", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("structInstField", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("structInstLVal", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("id", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("javascriptHash", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("proj", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("paren", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToModule.toModule", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("props", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Server.RpcEncodable.rpcEncode", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Server", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("RpcEncodable", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rpcEncode", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optEllipsis", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("}", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("quotedName", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetInstanceSpecAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_7, 5);
lean_inc(x_10);
x_11 = 0;
x_12 = l_Lean_SourceInfo_fromRef(x_10, x_11);
lean_dec(x_10);
x_13 = lean_ctor_get(x_7, 10);
lean_inc(x_13);
x_14 = lean_st_ref_get(x_8, x_9);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_ctor_get(x_14, 1);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_environment_main_module(x_18);
x_20 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5;
lean_inc(x_12);
lean_ctor_set_tag(x_14, 2);
lean_ctor_set(x_14, 1, x_20);
lean_ctor_set(x_14, 0, x_12);
x_21 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
x_22 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_inc(x_12);
x_23 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_22);
x_24 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
lean_inc(x_13);
lean_inc(x_19);
x_25 = l_Lean_addMacroScope(x_19, x_24, x_13);
x_26 = lean_box(0);
x_27 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13;
x_28 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18;
lean_inc(x_12);
x_29 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_29, 0, x_12);
lean_ctor_set(x_29, 1, x_27);
lean_ctor_set(x_29, 2, x_25);
lean_ctor_set(x_29, 3, x_28);
x_30 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11;
lean_inc(x_23);
lean_inc(x_12);
x_31 = l_Lean_Syntax_node2(x_12, x_30, x_29, x_23);
x_32 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19;
lean_inc(x_12);
x_33 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_33, 0, x_12);
lean_ctor_set(x_33, 1, x_32);
x_34 = l_Lean_Syntax_getId(x_1);
lean_inc(x_34);
x_35 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_26, x_34);
x_36 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22;
lean_inc(x_13);
lean_inc(x_19);
x_37 = l_Lean_addMacroScope(x_19, x_36, x_13);
x_38 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21;
lean_inc(x_12);
x_39 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_39, 0, x_12);
lean_ctor_set(x_39, 1, x_38);
lean_ctor_set(x_39, 2, x_37);
lean_ctor_set(x_39, 3, x_26);
lean_inc(x_23);
lean_inc(x_39);
lean_inc(x_12);
x_40 = l_Lean_Syntax_node2(x_12, x_30, x_39, x_23);
x_41 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27;
lean_inc(x_12);
x_42 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_42, 0, x_12);
lean_ctor_set(x_42, 1, x_41);
x_43 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32;
lean_inc(x_13);
lean_inc(x_19);
x_44 = l_Lean_addMacroScope(x_19, x_43, x_13);
x_45 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31;
x_46 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34;
lean_inc(x_12);
x_47 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_47, 0, x_12);
lean_ctor_set(x_47, 1, x_45);
lean_ctor_set(x_47, 2, x_44);
lean_ctor_set(x_47, 3, x_46);
lean_inc(x_12);
x_48 = l_Lean_Syntax_node1(x_12, x_21, x_1);
x_49 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
lean_inc(x_12);
x_50 = l_Lean_Syntax_node2(x_12, x_49, x_47, x_48);
x_51 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35;
lean_inc(x_12);
x_52 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_52, 0, x_12);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26;
lean_inc(x_12);
x_54 = l_Lean_Syntax_node3(x_12, x_53, x_42, x_50, x_52);
x_55 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
lean_inc(x_12);
x_56 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_56, 0, x_12);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24;
lean_inc(x_12);
x_58 = l_Lean_Syntax_node3(x_12, x_57, x_54, x_56, x_39);
x_59 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9;
lean_inc(x_33);
lean_inc(x_12);
x_60 = l_Lean_Syntax_node3(x_12, x_59, x_40, x_33, x_58);
x_61 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38;
lean_inc(x_13);
lean_inc(x_19);
x_62 = l_Lean_addMacroScope(x_19, x_61, x_13);
x_63 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37;
lean_inc(x_12);
x_64 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_64, 0, x_12);
lean_ctor_set(x_64, 1, x_63);
lean_ctor_set(x_64, 2, x_62);
lean_ctor_set(x_64, 3, x_26);
lean_inc(x_23);
lean_inc(x_12);
x_65 = l_Lean_Syntax_node2(x_12, x_30, x_64, x_23);
x_66 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44;
x_67 = l_Lean_addMacroScope(x_19, x_66, x_13);
x_68 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40;
x_69 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47;
lean_inc(x_12);
x_70 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_70, 0, x_12);
lean_ctor_set(x_70, 1, x_68);
lean_ctor_set(x_70, 2, x_67);
lean_ctor_set(x_70, 3, x_69);
lean_inc(x_12);
x_71 = l_Lean_Syntax_node1(x_12, x_21, x_2);
lean_inc(x_12);
x_72 = l_Lean_Syntax_node2(x_12, x_49, x_70, x_71);
lean_inc(x_33);
lean_inc(x_12);
x_73 = l_Lean_Syntax_node3(x_12, x_59, x_65, x_33, x_72);
x_74 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49;
lean_inc(x_23);
lean_inc(x_12);
x_75 = l_Lean_Syntax_node1(x_12, x_74, x_23);
x_76 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50;
lean_inc(x_12);
x_77 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_77, 0, x_12);
lean_ctor_set(x_77, 1, x_76);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; 
x_78 = l_Lean_quoteNameMk(x_34);
lean_inc(x_12);
x_79 = l_Lean_Syntax_node3(x_12, x_59, x_31, x_33, x_78);
lean_inc_n(x_23, 2);
lean_inc(x_12);
x_80 = l_Lean_Syntax_node5(x_12, x_21, x_79, x_23, x_60, x_23, x_73);
x_81 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4;
lean_inc(x_23);
x_82 = l_Lean_Syntax_node6(x_12, x_81, x_14, x_23, x_80, x_75, x_23, x_77);
x_83 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52;
x_84 = 1;
x_85 = l_Lean_Elab_Term_elabTerm(x_82, x_83, x_84, x_84, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
return x_85;
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; 
lean_dec(x_34);
x_86 = lean_ctor_get(x_35, 0);
lean_inc(x_86);
lean_dec(x_35);
x_87 = l_String_intercalate(x_55, x_86);
x_88 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55;
x_89 = lean_string_append(x_88, x_87);
lean_dec(x_87);
x_90 = lean_box(2);
x_91 = l_Lean_Syntax_mkNameLit(x_89, x_90);
x_92 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4;
x_93 = lean_array_push(x_92, x_91);
x_94 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54;
x_95 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_95, 0, x_90);
lean_ctor_set(x_95, 1, x_94);
lean_ctor_set(x_95, 2, x_93);
lean_inc(x_12);
x_96 = l_Lean_Syntax_node3(x_12, x_59, x_31, x_33, x_95);
lean_inc_n(x_23, 2);
lean_inc(x_12);
x_97 = l_Lean_Syntax_node5(x_12, x_21, x_96, x_23, x_60, x_23, x_73);
x_98 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4;
lean_inc(x_23);
x_99 = l_Lean_Syntax_node6(x_12, x_98, x_14, x_23, x_97, x_75, x_23, x_77);
x_100 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52;
x_101 = 1;
x_102 = l_Lean_Elab_Term_elabTerm(x_99, x_100, x_101, x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
return x_102;
}
}
else
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
x_103 = lean_ctor_get(x_14, 0);
x_104 = lean_ctor_get(x_14, 1);
lean_inc(x_104);
lean_inc(x_103);
lean_dec(x_14);
x_105 = lean_ctor_get(x_103, 0);
lean_inc(x_105);
lean_dec(x_103);
x_106 = lean_environment_main_module(x_105);
x_107 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5;
lean_inc(x_12);
x_108 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_108, 0, x_12);
lean_ctor_set(x_108, 1, x_107);
x_109 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
x_110 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_inc(x_12);
x_111 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_111, 0, x_12);
lean_ctor_set(x_111, 1, x_109);
lean_ctor_set(x_111, 2, x_110);
x_112 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
lean_inc(x_13);
lean_inc(x_106);
x_113 = l_Lean_addMacroScope(x_106, x_112, x_13);
x_114 = lean_box(0);
x_115 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13;
x_116 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18;
lean_inc(x_12);
x_117 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_117, 0, x_12);
lean_ctor_set(x_117, 1, x_115);
lean_ctor_set(x_117, 2, x_113);
lean_ctor_set(x_117, 3, x_116);
x_118 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11;
lean_inc(x_111);
lean_inc(x_12);
x_119 = l_Lean_Syntax_node2(x_12, x_118, x_117, x_111);
x_120 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19;
lean_inc(x_12);
x_121 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_121, 0, x_12);
lean_ctor_set(x_121, 1, x_120);
x_122 = l_Lean_Syntax_getId(x_1);
lean_inc(x_122);
x_123 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_114, x_122);
x_124 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22;
lean_inc(x_13);
lean_inc(x_106);
x_125 = l_Lean_addMacroScope(x_106, x_124, x_13);
x_126 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21;
lean_inc(x_12);
x_127 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_127, 0, x_12);
lean_ctor_set(x_127, 1, x_126);
lean_ctor_set(x_127, 2, x_125);
lean_ctor_set(x_127, 3, x_114);
lean_inc(x_111);
lean_inc(x_127);
lean_inc(x_12);
x_128 = l_Lean_Syntax_node2(x_12, x_118, x_127, x_111);
x_129 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27;
lean_inc(x_12);
x_130 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_130, 0, x_12);
lean_ctor_set(x_130, 1, x_129);
x_131 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32;
lean_inc(x_13);
lean_inc(x_106);
x_132 = l_Lean_addMacroScope(x_106, x_131, x_13);
x_133 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31;
x_134 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34;
lean_inc(x_12);
x_135 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_135, 0, x_12);
lean_ctor_set(x_135, 1, x_133);
lean_ctor_set(x_135, 2, x_132);
lean_ctor_set(x_135, 3, x_134);
lean_inc(x_12);
x_136 = l_Lean_Syntax_node1(x_12, x_109, x_1);
x_137 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
lean_inc(x_12);
x_138 = l_Lean_Syntax_node2(x_12, x_137, x_135, x_136);
x_139 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35;
lean_inc(x_12);
x_140 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_140, 0, x_12);
lean_ctor_set(x_140, 1, x_139);
x_141 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26;
lean_inc(x_12);
x_142 = l_Lean_Syntax_node3(x_12, x_141, x_130, x_138, x_140);
x_143 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
lean_inc(x_12);
x_144 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_144, 0, x_12);
lean_ctor_set(x_144, 1, x_143);
x_145 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24;
lean_inc(x_12);
x_146 = l_Lean_Syntax_node3(x_12, x_145, x_142, x_144, x_127);
x_147 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9;
lean_inc(x_121);
lean_inc(x_12);
x_148 = l_Lean_Syntax_node3(x_12, x_147, x_128, x_121, x_146);
x_149 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38;
lean_inc(x_13);
lean_inc(x_106);
x_150 = l_Lean_addMacroScope(x_106, x_149, x_13);
x_151 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37;
lean_inc(x_12);
x_152 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_152, 0, x_12);
lean_ctor_set(x_152, 1, x_151);
lean_ctor_set(x_152, 2, x_150);
lean_ctor_set(x_152, 3, x_114);
lean_inc(x_111);
lean_inc(x_12);
x_153 = l_Lean_Syntax_node2(x_12, x_118, x_152, x_111);
x_154 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44;
x_155 = l_Lean_addMacroScope(x_106, x_154, x_13);
x_156 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40;
x_157 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47;
lean_inc(x_12);
x_158 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_158, 0, x_12);
lean_ctor_set(x_158, 1, x_156);
lean_ctor_set(x_158, 2, x_155);
lean_ctor_set(x_158, 3, x_157);
lean_inc(x_12);
x_159 = l_Lean_Syntax_node1(x_12, x_109, x_2);
lean_inc(x_12);
x_160 = l_Lean_Syntax_node2(x_12, x_137, x_158, x_159);
lean_inc(x_121);
lean_inc(x_12);
x_161 = l_Lean_Syntax_node3(x_12, x_147, x_153, x_121, x_160);
x_162 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49;
lean_inc(x_111);
lean_inc(x_12);
x_163 = l_Lean_Syntax_node1(x_12, x_162, x_111);
x_164 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50;
lean_inc(x_12);
x_165 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_165, 0, x_12);
lean_ctor_set(x_165, 1, x_164);
if (lean_obj_tag(x_123) == 0)
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; 
x_166 = l_Lean_quoteNameMk(x_122);
lean_inc(x_12);
x_167 = l_Lean_Syntax_node3(x_12, x_147, x_119, x_121, x_166);
lean_inc_n(x_111, 2);
lean_inc(x_12);
x_168 = l_Lean_Syntax_node5(x_12, x_109, x_167, x_111, x_148, x_111, x_161);
x_169 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4;
lean_inc(x_111);
x_170 = l_Lean_Syntax_node6(x_12, x_169, x_108, x_111, x_168, x_163, x_111, x_165);
x_171 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52;
x_172 = 1;
x_173 = l_Lean_Elab_Term_elabTerm(x_170, x_171, x_172, x_172, x_3, x_4, x_5, x_6, x_7, x_8, x_104);
return x_173;
}
else
{
lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; lean_object* x_190; 
lean_dec(x_122);
x_174 = lean_ctor_get(x_123, 0);
lean_inc(x_174);
lean_dec(x_123);
x_175 = l_String_intercalate(x_143, x_174);
x_176 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55;
x_177 = lean_string_append(x_176, x_175);
lean_dec(x_175);
x_178 = lean_box(2);
x_179 = l_Lean_Syntax_mkNameLit(x_177, x_178);
x_180 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4;
x_181 = lean_array_push(x_180, x_179);
x_182 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54;
x_183 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_183, 0, x_178);
lean_ctor_set(x_183, 1, x_182);
lean_ctor_set(x_183, 2, x_181);
lean_inc(x_12);
x_184 = l_Lean_Syntax_node3(x_12, x_147, x_119, x_121, x_183);
lean_inc_n(x_111, 2);
lean_inc(x_12);
x_185 = l_Lean_Syntax_node5(x_12, x_109, x_184, x_111, x_148, x_111, x_161);
x_186 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4;
lean_inc(x_111);
x_187 = l_Lean_Syntax_node6(x_12, x_186, x_108, x_111, x_185, x_163, x_111, x_165);
x_188 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52;
x_189 = 1;
x_190 = l_Lean_Elab_Term_elabTerm(x_187, x_188, x_189, x_189, x_3, x_4, x_5, x_6, x_7, x_8, x_104);
return x_190;
}
}
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Json.mkObj", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Json", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkObj", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__3;
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__3;
x_3 = l_Lean_Widget_elabWidgetInstanceSpec___closed__4;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__6;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__7;
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__9;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term[_]", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_elabWidgetInstanceSpec___closed__11;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetInstanceSpec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; uint8_t x_10; 
x_9 = l_Lean_Widget_widgetInstanceSpec___closed__2;
lean_inc(x_1);
x_10 = l_Lean_Syntax_isOfKind(x_1, x_9);
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_11 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_8);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_12 = lean_unsigned_to_nat(0u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
x_14 = l_Lean_Widget_widgetInstanceSpec___closed__6;
lean_inc(x_13);
x_15 = l_Lean_Syntax_isOfKind(x_13, x_14);
if (x_15 == 0)
{
lean_object* x_16; 
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_16 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_8);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_unsigned_to_nat(1u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
lean_dec(x_1);
lean_inc(x_18);
x_19 = l_Lean_Syntax_matchesNull(x_18, x_12);
if (x_19 == 0)
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_unsigned_to_nat(2u);
lean_inc(x_18);
x_21 = l_Lean_Syntax_matchesNull(x_18, x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_dec(x_18);
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_22 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_8);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; 
x_23 = l_Lean_Syntax_getArg(x_18, x_17);
lean_dec(x_18);
x_24 = l_Lean_Widget_elabWidgetInstanceSpecAux(x_13, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
return x_24;
}
}
else
{
lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
lean_dec(x_18);
x_25 = lean_ctor_get(x_6, 5);
lean_inc(x_25);
x_26 = 0;
x_27 = l_Lean_SourceInfo_fromRef(x_25, x_26);
lean_dec(x_25);
x_28 = lean_ctor_get(x_6, 10);
lean_inc(x_28);
x_29 = lean_st_ref_get(x_7, x_8);
x_30 = !lean_is_exclusive(x_29);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_31 = lean_ctor_get(x_29, 0);
x_32 = lean_ctor_get(x_29, 1);
x_33 = lean_ctor_get(x_31, 0);
lean_inc(x_33);
lean_dec(x_31);
x_34 = lean_environment_main_module(x_33);
x_35 = l_Lean_Widget_elabWidgetInstanceSpec___closed__5;
x_36 = l_Lean_addMacroScope(x_34, x_35, x_28);
x_37 = l_Lean_Widget_elabWidgetInstanceSpec___closed__2;
x_38 = l_Lean_Widget_elabWidgetInstanceSpec___closed__10;
lean_inc(x_27);
x_39 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_39, 0, x_27);
lean_ctor_set(x_39, 1, x_37);
lean_ctor_set(x_39, 2, x_36);
lean_ctor_set(x_39, 3, x_38);
x_40 = l_Lean_Widget_elabWidgetInstanceSpec___closed__13;
lean_inc(x_27);
lean_ctor_set_tag(x_29, 2);
lean_ctor_set(x_29, 1, x_40);
lean_ctor_set(x_29, 0, x_27);
x_41 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
x_42 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_inc(x_27);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_27);
lean_ctor_set(x_43, 1, x_41);
lean_ctor_set(x_43, 2, x_42);
x_44 = l_Lean_Widget_elabWidgetInstanceSpec___closed__14;
lean_inc(x_27);
x_45 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_45, 0, x_27);
lean_ctor_set(x_45, 1, x_44);
x_46 = l_Lean_Widget_elabWidgetInstanceSpec___closed__12;
lean_inc(x_27);
x_47 = l_Lean_Syntax_node3(x_27, x_46, x_29, x_43, x_45);
lean_inc(x_27);
x_48 = l_Lean_Syntax_node1(x_27, x_41, x_47);
x_49 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
x_50 = l_Lean_Syntax_node2(x_27, x_49, x_39, x_48);
x_51 = l_Lean_Widget_elabWidgetInstanceSpecAux(x_13, x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_32);
return x_51;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_52 = lean_ctor_get(x_29, 0);
x_53 = lean_ctor_get(x_29, 1);
lean_inc(x_53);
lean_inc(x_52);
lean_dec(x_29);
x_54 = lean_ctor_get(x_52, 0);
lean_inc(x_54);
lean_dec(x_52);
x_55 = lean_environment_main_module(x_54);
x_56 = l_Lean_Widget_elabWidgetInstanceSpec___closed__5;
x_57 = l_Lean_addMacroScope(x_55, x_56, x_28);
x_58 = l_Lean_Widget_elabWidgetInstanceSpec___closed__2;
x_59 = l_Lean_Widget_elabWidgetInstanceSpec___closed__10;
lean_inc(x_27);
x_60 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_60, 0, x_27);
lean_ctor_set(x_60, 1, x_58);
lean_ctor_set(x_60, 2, x_57);
lean_ctor_set(x_60, 3, x_59);
x_61 = l_Lean_Widget_elabWidgetInstanceSpec___closed__13;
lean_inc(x_27);
x_62 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_62, 0, x_27);
lean_ctor_set(x_62, 1, x_61);
x_63 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
x_64 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_inc(x_27);
x_65 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_65, 0, x_27);
lean_ctor_set(x_65, 1, x_63);
lean_ctor_set(x_65, 2, x_64);
x_66 = l_Lean_Widget_elabWidgetInstanceSpec___closed__14;
lean_inc(x_27);
x_67 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_67, 0, x_27);
lean_ctor_set(x_67, 1, x_66);
x_68 = l_Lean_Widget_elabWidgetInstanceSpec___closed__12;
lean_inc(x_27);
x_69 = l_Lean_Syntax_node3(x_27, x_68, x_62, x_65, x_67);
lean_inc(x_27);
x_70 = l_Lean_Syntax_node1(x_27, x_63, x_69);
x_71 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
x_72 = l_Lean_Syntax_node2(x_27, x_71, x_60, x_70);
x_73 = l_Lean_Widget_elabWidgetInstanceSpecAux(x_13, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_53);
return x_73;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("addWidgetSpec", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_addWidgetSpec___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1;
x_3 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2;
x_4 = l_Lean_Widget_addWidgetSpec___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_addWidgetSpec___closed__4;
x_2 = lean_alloc_ctor(8, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_addWidgetSpec___closed__5;
x_3 = l_Lean_Widget_widgetInstanceSpec;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_addWidgetSpec___closed__1;
x_2 = l_Lean_Widget_addWidgetSpec___closed__2;
x_3 = l_Lean_Widget_addWidgetSpec___closed__6;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_addWidgetSpec() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_addWidgetSpec___closed__7;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("eraseWidgetSpec", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_eraseWidgetSpec___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_eraseWidgetSpec___closed__3;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_eraseWidgetSpec___closed__4;
x_3 = l_Lean_Widget_widgetInstanceSpec___closed__7;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_eraseWidgetSpec___closed__1;
x_2 = l_Lean_Widget_eraseWidgetSpec___closed__2;
x_3 = l_Lean_Widget_eraseWidgetSpec___closed__5;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_eraseWidgetSpec() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_eraseWidgetSpec___closed__6;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("showWidgetSpec", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_showWidgetSpec___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("orelse", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_showWidgetSpec___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_showWidgetSpec___closed__4;
x_2 = l_Lean_Widget_addWidgetSpec;
x_3 = l_Lean_Widget_eraseWidgetSpec;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_showWidgetSpec___closed__1;
x_2 = l_Lean_Widget_showWidgetSpec___closed__2;
x_3 = l_Lean_Widget_showWidgetSpec___closed__5;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showWidgetSpec() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_showWidgetSpec___closed__6;
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("showPanelWidgetsCmd", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("show_panel_widgets ", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_showPanelWidgetsCmd___closed__3;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__13;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_showPanelWidgetsCmd___closed__4;
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__5;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_showPanelWidgetsCmd___closed__7;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l_Lean_Widget_showWidgetSpec;
x_2 = l_Lean_Widget_showPanelWidgetsCmd___closed__7;
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__8;
x_4 = 0;
x_5 = lean_alloc_ctor(11, 3, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_showPanelWidgetsCmd___closed__6;
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__9;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpec___closed__14;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_showPanelWidgetsCmd___closed__10;
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__11;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_showPanelWidgetsCmd___closed__2;
x_2 = lean_unsigned_to_nat(1024u);
x_3 = l_Lean_Widget_showPanelWidgetsCmd___closed__12;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_showPanelWidgetsCmd() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_showPanelWidgetsCmd___closed__13;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_unsupportedSyntaxExceptionId;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg), 1, 0);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_inc(x_10);
x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_ctor_set(x_12, 1, x_18);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set_tag(x_16, 1);
lean_ctor_set(x_16, 0, x_12);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_16, 0);
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_16);
lean_ctor_set(x_12, 1, x_19);
lean_ctor_set(x_12, 0, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_12, 0);
x_23 = lean_ctor_get(x_12, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_12);
x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23);
lean_dec(x_2);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
if (lean_is_exclusive(x_24)) {
 lean_ctor_release(x_24, 0);
 lean_ctor_release(x_24, 1);
 x_27 = x_24;
} else {
 lean_dec_ref(x_24);
 x_27 = lean_box(0);
}
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_11);
lean_ctor_set(x_28, 1, x_25);
if (lean_is_scalar(x_27)) {
 x_29 = lean_alloc_ctor(1, 2, 0);
} else {
 x_29 = x_27;
 lean_ctor_set_tag(x_29, 1);
}
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_7, 5);
x_12 = l_Lean_replaceRef(x_1, x_11);
lean_dec(x_11);
lean_ctor_set(x_7, 5, x_12);
x_13 = l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_7);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_14 = lean_ctor_get(x_7, 0);
x_15 = lean_ctor_get(x_7, 1);
x_16 = lean_ctor_get(x_7, 2);
x_17 = lean_ctor_get(x_7, 3);
x_18 = lean_ctor_get(x_7, 4);
x_19 = lean_ctor_get(x_7, 5);
x_20 = lean_ctor_get(x_7, 6);
x_21 = lean_ctor_get(x_7, 7);
x_22 = lean_ctor_get(x_7, 8);
x_23 = lean_ctor_get(x_7, 9);
x_24 = lean_ctor_get(x_7, 10);
x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12);
x_26 = lean_ctor_get(x_7, 11);
x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1);
lean_inc(x_26);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_7);
x_28 = l_Lean_replaceRef(x_1, x_19);
lean_dec(x_19);
x_29 = lean_alloc_ctor(0, 12, 2);
lean_ctor_set(x_29, 0, x_14);
lean_ctor_set(x_29, 1, x_15);
lean_ctor_set(x_29, 2, x_16);
lean_ctor_set(x_29, 3, x_17);
lean_ctor_set(x_29, 4, x_18);
lean_ctor_set(x_29, 5, x_28);
lean_ctor_set(x_29, 6, x_20);
lean_ctor_set(x_29, 7, x_21);
lean_ctor_set(x_29, 8, x_22);
lean_ctor_set(x_29, 9, x_23);
lean_ctor_set(x_29, 10, x_24);
lean_ctor_set(x_29, 11, x_26);
lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25);
lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27);
x_30 = l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9);
lean_dec(x_29);
return x_30;
}
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_maxRecDepthErrorMessage;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2;
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_8);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___rarg), 1, 0);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_Elab_expandMacroImpl_x3f(x_1, x_2, x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_5);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_5, 0);
lean_dec(x_8);
x_9 = lean_box(0);
lean_ctor_set(x_5, 0, x_9);
return x_5;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_dec(x_5);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; uint8_t x_17; 
lean_free_object(x_6);
x_16 = lean_ctor_get(x_5, 1);
lean_inc(x_16);
lean_dec(x_5);
x_17 = !lean_is_exclusive(x_15);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_15, x_3, x_16);
lean_dec(x_15);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_20, x_3, x_16);
lean_dec(x_20);
return x_21;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = lean_ctor_get(x_5, 1);
lean_inc(x_22);
lean_dec(x_5);
x_23 = !lean_is_exclusive(x_15);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_15, 0);
lean_ctor_set(x_6, 0, x_24);
lean_ctor_set(x_15, 0, x_6);
x_25 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_15, x_3, x_22);
lean_dec(x_15);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_15, 0);
lean_inc(x_26);
lean_dec(x_15);
lean_ctor_set(x_6, 0, x_26);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_6);
x_28 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_27, x_3, x_22);
lean_dec(x_27);
return x_28;
}
}
}
else
{
lean_object* x_29; lean_object* x_30; 
x_29 = lean_ctor_get(x_6, 0);
lean_inc(x_29);
lean_dec(x_6);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_31 = lean_ctor_get(x_5, 1);
lean_inc(x_31);
lean_dec(x_5);
x_32 = lean_ctor_get(x_30, 0);
lean_inc(x_32);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_33 = x_30;
} else {
 lean_dec_ref(x_30);
 x_33 = lean_box(0);
}
if (lean_is_scalar(x_33)) {
 x_34 = lean_alloc_ctor(0, 1, 0);
} else {
 x_34 = x_33;
}
lean_ctor_set(x_34, 0, x_32);
x_35 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_34, x_3, x_31);
lean_dec(x_34);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_36 = lean_ctor_get(x_5, 1);
lean_inc(x_36);
lean_dec(x_5);
x_37 = lean_ctor_get(x_30, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_38 = x_30;
} else {
 lean_dec_ref(x_30);
 x_38 = lean_box(0);
}
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_37);
if (lean_is_scalar(x_38)) {
 x_40 = lean_alloc_ctor(1, 1, 0);
} else {
 x_40 = x_38;
}
lean_ctor_set(x_40, 0, x_39);
x_41 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_40, x_3, x_36);
lean_dec(x_40);
return x_41;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_5 = l_Lean_Environment_contains(x_1, x_2);
x_6 = lean_box(x_5);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_ResolveName_resolveNamespace(x_1, x_2, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_ResolveName_resolveGlobalName(x_1, x_2, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_9 = lean_st_ref_get(x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_6, 3);
lean_inc(x_13);
x_14 = lean_ctor_get(x_6, 4);
lean_inc(x_14);
x_15 = lean_ctor_get(x_6, 5);
lean_inc(x_15);
x_16 = lean_ctor_get(x_6, 6);
lean_inc(x_16);
x_17 = lean_ctor_get(x_6, 7);
lean_inc(x_17);
x_18 = lean_ctor_get(x_6, 10);
lean_inc(x_18);
lean_inc(x_12);
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1___boxed), 4, 1);
lean_closure_set(x_19, 0, x_12);
lean_inc(x_16);
x_20 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed), 3, 1);
lean_closure_set(x_20, 0, x_16);
lean_inc(x_12);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2___boxed), 4, 1);
lean_closure_set(x_21, 0, x_12);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_12);
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3___boxed), 6, 3);
lean_closure_set(x_22, 0, x_12);
lean_closure_set(x_22, 1, x_16);
lean_closure_set(x_22, 2, x_17);
lean_inc(x_12);
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4___boxed), 6, 3);
lean_closure_set(x_23, 0, x_12);
lean_closure_set(x_23, 1, x_16);
lean_closure_set(x_23, 2, x_17);
x_24 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_20);
lean_ctor_set(x_24, 2, x_21);
lean_ctor_set(x_24, 3, x_22);
lean_ctor_set(x_24, 4, x_23);
x_25 = lean_st_ref_get(x_7, x_11);
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_27 = lean_ctor_get(x_25, 0);
x_28 = lean_ctor_get(x_25, 1);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
x_30 = lean_environment_main_module(x_12);
x_31 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_31, 0, x_24);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_31, 2, x_18);
lean_ctor_set(x_31, 3, x_13);
lean_ctor_set(x_31, 4, x_14);
lean_ctor_set(x_31, 5, x_15);
x_32 = lean_box(0);
lean_ctor_set(x_25, 1, x_32);
lean_ctor_set(x_25, 0, x_29);
x_33 = lean_apply_2(x_1, x_31, x_25);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
x_37 = lean_st_ref_take(x_7, x_28);
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
x_39 = lean_ctor_get(x_37, 1);
lean_inc(x_39);
lean_dec(x_37);
x_40 = !lean_is_exclusive(x_38);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_41 = lean_ctor_get(x_38, 1);
lean_dec(x_41);
lean_ctor_set(x_38, 1, x_36);
x_42 = lean_st_ref_set(x_7, x_38, x_39);
x_43 = lean_ctor_get(x_42, 1);
lean_inc(x_43);
lean_dec(x_42);
x_44 = lean_ctor_get(x_35, 1);
lean_inc(x_44);
lean_dec(x_35);
x_45 = l_List_reverse___rarg(x_44);
x_46 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_43);
lean_dec(x_6);
lean_dec(x_2);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
lean_object* x_48; 
x_48 = lean_ctor_get(x_46, 0);
lean_dec(x_48);
lean_ctor_set(x_46, 0, x_34);
return x_46;
}
else
{
lean_object* x_49; lean_object* x_50; 
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_dec(x_46);
x_50 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_50, 0, x_34);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_51 = lean_ctor_get(x_38, 0);
x_52 = lean_ctor_get(x_38, 2);
x_53 = lean_ctor_get(x_38, 3);
x_54 = lean_ctor_get(x_38, 4);
x_55 = lean_ctor_get(x_38, 5);
x_56 = lean_ctor_get(x_38, 6);
lean_inc(x_56);
lean_inc(x_55);
lean_inc(x_54);
lean_inc(x_53);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_38);
x_57 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_57, 0, x_51);
lean_ctor_set(x_57, 1, x_36);
lean_ctor_set(x_57, 2, x_52);
lean_ctor_set(x_57, 3, x_53);
lean_ctor_set(x_57, 4, x_54);
lean_ctor_set(x_57, 5, x_55);
lean_ctor_set(x_57, 6, x_56);
x_58 = lean_st_ref_set(x_7, x_57, x_39);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_ctor_get(x_35, 1);
lean_inc(x_60);
lean_dec(x_35);
x_61 = l_List_reverse___rarg(x_60);
x_62 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_59);
lean_dec(x_6);
lean_dec(x_2);
x_63 = lean_ctor_get(x_62, 1);
lean_inc(x_63);
if (lean_is_exclusive(x_62)) {
 lean_ctor_release(x_62, 0);
 lean_ctor_release(x_62, 1);
 x_64 = x_62;
} else {
 lean_dec_ref(x_62);
 x_64 = lean_box(0);
}
if (lean_is_scalar(x_64)) {
 x_65 = lean_alloc_ctor(0, 2, 0);
} else {
 x_65 = x_64;
}
lean_ctor_set(x_65, 0, x_34);
lean_ctor_set(x_65, 1, x_63);
return x_65;
}
}
else
{
lean_object* x_66; 
x_66 = lean_ctor_get(x_33, 0);
lean_inc(x_66);
lean_dec(x_33);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
lean_dec(x_66);
x_69 = l_Lean_maxRecDepthErrorMessage;
x_70 = lean_string_dec_eq(x_68, x_69);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_71, 0, x_68);
x_72 = l_Lean_MessageData_ofFormat(x_71);
x_73 = l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4(x_67, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_28);
lean_dec(x_67);
return x_73;
}
else
{
lean_object* x_74; 
lean_dec(x_68);
x_74 = l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6(x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_28);
lean_dec(x_6);
lean_dec(x_2);
return x_74;
}
}
else
{
lean_object* x_75; 
lean_dec(x_6);
lean_dec(x_2);
x_75 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___rarg(x_28);
return x_75;
}
}
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_76 = lean_ctor_get(x_25, 0);
x_77 = lean_ctor_get(x_25, 1);
lean_inc(x_77);
lean_inc(x_76);
lean_dec(x_25);
x_78 = lean_ctor_get(x_76, 1);
lean_inc(x_78);
lean_dec(x_76);
x_79 = lean_environment_main_module(x_12);
x_80 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_80, 0, x_24);
lean_ctor_set(x_80, 1, x_79);
lean_ctor_set(x_80, 2, x_18);
lean_ctor_set(x_80, 3, x_13);
lean_ctor_set(x_80, 4, x_14);
lean_ctor_set(x_80, 5, x_15);
x_81 = lean_box(0);
x_82 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_82, 0, x_78);
lean_ctor_set(x_82, 1, x_81);
x_83 = lean_apply_2(x_1, x_80, x_82);
if (lean_obj_tag(x_83) == 0)
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_83, 1);
lean_inc(x_85);
lean_dec(x_83);
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
x_87 = lean_st_ref_take(x_7, x_77);
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
lean_dec(x_87);
x_90 = lean_ctor_get(x_88, 0);
lean_inc(x_90);
x_91 = lean_ctor_get(x_88, 2);
lean_inc(x_91);
x_92 = lean_ctor_get(x_88, 3);
lean_inc(x_92);
x_93 = lean_ctor_get(x_88, 4);
lean_inc(x_93);
x_94 = lean_ctor_get(x_88, 5);
lean_inc(x_94);
x_95 = lean_ctor_get(x_88, 6);
lean_inc(x_95);
if (lean_is_exclusive(x_88)) {
 lean_ctor_release(x_88, 0);
 lean_ctor_release(x_88, 1);
 lean_ctor_release(x_88, 2);
 lean_ctor_release(x_88, 3);
 lean_ctor_release(x_88, 4);
 lean_ctor_release(x_88, 5);
 lean_ctor_release(x_88, 6);
 x_96 = x_88;
} else {
 lean_dec_ref(x_88);
 x_96 = lean_box(0);
}
if (lean_is_scalar(x_96)) {
 x_97 = lean_alloc_ctor(0, 7, 0);
} else {
 x_97 = x_96;
}
lean_ctor_set(x_97, 0, x_90);
lean_ctor_set(x_97, 1, x_86);
lean_ctor_set(x_97, 2, x_91);
lean_ctor_set(x_97, 3, x_92);
lean_ctor_set(x_97, 4, x_93);
lean_ctor_set(x_97, 5, x_94);
lean_ctor_set(x_97, 6, x_95);
x_98 = lean_st_ref_set(x_7, x_97, x_89);
x_99 = lean_ctor_get(x_98, 1);
lean_inc(x_99);
lean_dec(x_98);
x_100 = lean_ctor_get(x_85, 1);
lean_inc(x_100);
lean_dec(x_85);
x_101 = l_List_reverse___rarg(x_100);
x_102 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_101, x_2, x_3, x_4, x_5, x_6, x_7, x_99);
lean_dec(x_6);
lean_dec(x_2);
x_103 = lean_ctor_get(x_102, 1);
lean_inc(x_103);
if (lean_is_exclusive(x_102)) {
 lean_ctor_release(x_102, 0);
 lean_ctor_release(x_102, 1);
 x_104 = x_102;
} else {
 lean_dec_ref(x_102);
 x_104 = lean_box(0);
}
if (lean_is_scalar(x_104)) {
 x_105 = lean_alloc_ctor(0, 2, 0);
} else {
 x_105 = x_104;
}
lean_ctor_set(x_105, 0, x_84);
lean_ctor_set(x_105, 1, x_103);
return x_105;
}
else
{
lean_object* x_106; 
x_106 = lean_ctor_get(x_83, 0);
lean_inc(x_106);
lean_dec(x_83);
if (lean_obj_tag(x_106) == 0)
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; 
x_107 = lean_ctor_get(x_106, 0);
lean_inc(x_107);
x_108 = lean_ctor_get(x_106, 1);
lean_inc(x_108);
lean_dec(x_106);
x_109 = l_Lean_maxRecDepthErrorMessage;
x_110 = lean_string_dec_eq(x_108, x_109);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_111 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_111, 0, x_108);
x_112 = l_Lean_MessageData_ofFormat(x_111);
x_113 = l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4(x_107, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_77);
lean_dec(x_107);
return x_113;
}
else
{
lean_object* x_114; 
lean_dec(x_108);
x_114 = l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6(x_107, x_2, x_3, x_4, x_5, x_6, x_7, x_77);
lean_dec(x_6);
lean_dec(x_2);
return x_114;
}
}
else
{
lean_object* x_115; 
lean_dec(x_6);
lean_dec(x_2);
x_115 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___rarg(x_77);
return x_115;
}
}
}
}
}
static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3;
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_11 = lean_ctor_get(x_8, 6);
lean_inc(x_11);
lean_dec(x_8);
x_12 = lean_st_ref_take(x_9, x_10);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = !lean_is_exclusive(x_13);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_16 = lean_ctor_get(x_13, 0);
x_17 = lean_ctor_get(x_13, 4);
lean_dec(x_17);
x_18 = l_Lean_ScopedEnvExtension_addCore___rarg(x_16, x_1, x_2, x_3, x_11);
x_19 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
lean_ctor_set(x_13, 4, x_19);
lean_ctor_set(x_13, 0, x_18);
x_20 = lean_st_ref_set(x_9, x_13, x_14);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
lean_dec(x_20);
x_22 = lean_st_ref_take(x_7, x_21);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = !lean_is_exclusive(x_23);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_26 = lean_ctor_get(x_23, 1);
lean_dec(x_26);
x_27 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
lean_ctor_set(x_23, 1, x_27);
x_28 = lean_st_ref_set(x_7, x_23, x_24);
x_29 = !lean_is_exclusive(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_28, 0);
lean_dec(x_30);
x_31 = lean_box(0);
lean_ctor_set(x_28, 0, x_31);
return x_28;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_28, 1);
lean_inc(x_32);
lean_dec(x_28);
x_33 = lean_box(0);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_32);
return x_34;
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_35 = lean_ctor_get(x_23, 0);
x_36 = lean_ctor_get(x_23, 2);
x_37 = lean_ctor_get(x_23, 3);
x_38 = lean_ctor_get(x_23, 4);
lean_inc(x_38);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_23);
x_39 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
x_40 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_40, 0, x_35);
lean_ctor_set(x_40, 1, x_39);
lean_ctor_set(x_40, 2, x_36);
lean_ctor_set(x_40, 3, x_37);
lean_ctor_set(x_40, 4, x_38);
x_41 = lean_st_ref_set(x_7, x_40, x_24);
x_42 = lean_ctor_get(x_41, 1);
lean_inc(x_42);
if (lean_is_exclusive(x_41)) {
 lean_ctor_release(x_41, 0);
 lean_ctor_release(x_41, 1);
 x_43 = x_41;
} else {
 lean_dec_ref(x_41);
 x_43 = lean_box(0);
}
x_44 = lean_box(0);
if (lean_is_scalar(x_43)) {
 x_45 = lean_alloc_ctor(0, 2, 0);
} else {
 x_45 = x_43;
}
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_42);
return x_45;
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_46 = lean_ctor_get(x_13, 0);
x_47 = lean_ctor_get(x_13, 1);
x_48 = lean_ctor_get(x_13, 2);
x_49 = lean_ctor_get(x_13, 3);
x_50 = lean_ctor_get(x_13, 5);
x_51 = lean_ctor_get(x_13, 6);
lean_inc(x_51);
lean_inc(x_50);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_13);
x_52 = l_Lean_ScopedEnvExtension_addCore___rarg(x_46, x_1, x_2, x_3, x_11);
x_53 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
x_54 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_47);
lean_ctor_set(x_54, 2, x_48);
lean_ctor_set(x_54, 3, x_49);
lean_ctor_set(x_54, 4, x_53);
lean_ctor_set(x_54, 5, x_50);
lean_ctor_set(x_54, 6, x_51);
x_55 = lean_st_ref_set(x_9, x_54, x_14);
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = lean_st_ref_take(x_7, x_56);
x_58 = lean_ctor_get(x_57, 0);
lean_inc(x_58);
x_59 = lean_ctor_get(x_57, 1);
lean_inc(x_59);
lean_dec(x_57);
x_60 = lean_ctor_get(x_58, 0);
lean_inc(x_60);
x_61 = lean_ctor_get(x_58, 2);
lean_inc(x_61);
x_62 = lean_ctor_get(x_58, 3);
lean_inc(x_62);
x_63 = lean_ctor_get(x_58, 4);
lean_inc(x_63);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 lean_ctor_release(x_58, 1);
 lean_ctor_release(x_58, 2);
 lean_ctor_release(x_58, 3);
 lean_ctor_release(x_58, 4);
 x_64 = x_58;
} else {
 lean_dec_ref(x_58);
 x_64 = lean_box(0);
}
x_65 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
if (lean_is_scalar(x_64)) {
 x_66 = lean_alloc_ctor(0, 5, 0);
} else {
 x_66 = x_64;
}
lean_ctor_set(x_66, 0, x_60);
lean_ctor_set(x_66, 1, x_65);
lean_ctor_set(x_66, 2, x_61);
lean_ctor_set(x_66, 3, x_62);
lean_ctor_set(x_66, 4, x_63);
x_67 = lean_st_ref_set(x_7, x_66, x_59);
x_68 = lean_ctor_get(x_67, 1);
lean_inc(x_68);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 lean_ctor_release(x_67, 1);
 x_69 = x_67;
} else {
 lean_dec_ref(x_67);
 x_69 = lean_box(0);
}
x_70 = lean_box(0);
if (lean_is_scalar(x_69)) {
 x_71 = lean_alloc_ctor(0, 2, 0);
} else {
 x_71 = x_69;
}
lean_ctor_set(x_71, 0, x_70);
lean_ctor_set(x_71, 1, x_68);
return x_71;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_10 = lean_box_uint64(x_1);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_2);
x_12 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_13 = 0;
x_14 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9(x_12, x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_9 = lean_st_ref_take(x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_13 = lean_ctor_get(x_10, 0);
x_14 = lean_ctor_get(x_10, 4);
lean_dec(x_14);
x_15 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__1), 2, 1);
lean_closure_set(x_15, 0, x_1);
x_16 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_17 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_16, x_13, x_15);
x_18 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
lean_ctor_set(x_10, 4, x_18);
lean_ctor_set(x_10, 0, x_17);
x_19 = lean_st_ref_set(x_7, x_10, x_11);
x_20 = lean_ctor_get(x_19, 1);
lean_inc(x_20);
lean_dec(x_19);
x_21 = lean_st_ref_take(x_5, x_20);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = !lean_is_exclusive(x_22);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_25 = lean_ctor_get(x_22, 1);
lean_dec(x_25);
x_26 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
lean_ctor_set(x_22, 1, x_26);
x_27 = lean_st_ref_set(x_5, x_22, x_23);
x_28 = !lean_is_exclusive(x_27);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; 
x_29 = lean_ctor_get(x_27, 0);
lean_dec(x_29);
x_30 = lean_box(0);
lean_ctor_set(x_27, 0, x_30);
return x_27;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_27, 1);
lean_inc(x_31);
lean_dec(x_27);
x_32 = lean_box(0);
x_33 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set(x_33, 1, x_31);
return x_33;
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_34 = lean_ctor_get(x_22, 0);
x_35 = lean_ctor_get(x_22, 2);
x_36 = lean_ctor_get(x_22, 3);
x_37 = lean_ctor_get(x_22, 4);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_22);
x_38 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
x_39 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_39, 0, x_34);
lean_ctor_set(x_39, 1, x_38);
lean_ctor_set(x_39, 2, x_35);
lean_ctor_set(x_39, 3, x_36);
lean_ctor_set(x_39, 4, x_37);
x_40 = lean_st_ref_set(x_5, x_39, x_23);
x_41 = lean_ctor_get(x_40, 1);
lean_inc(x_41);
if (lean_is_exclusive(x_40)) {
 lean_ctor_release(x_40, 0);
 lean_ctor_release(x_40, 1);
 x_42 = x_40;
} else {
 lean_dec_ref(x_40);
 x_42 = lean_box(0);
}
x_43 = lean_box(0);
if (lean_is_scalar(x_42)) {
 x_44 = lean_alloc_ctor(0, 2, 0);
} else {
 x_44 = x_42;
}
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_41);
return x_44;
}
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_45 = lean_ctor_get(x_10, 0);
x_46 = lean_ctor_get(x_10, 1);
x_47 = lean_ctor_get(x_10, 2);
x_48 = lean_ctor_get(x_10, 3);
x_49 = lean_ctor_get(x_10, 5);
x_50 = lean_ctor_get(x_10, 6);
lean_inc(x_50);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_inc(x_45);
lean_dec(x_10);
x_51 = lean_alloc_closure((void*)(l_Lean_Widget_addPanelWidgetLocal___rarg___lambda__1), 2, 1);
lean_closure_set(x_51, 0, x_1);
x_52 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_53 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_52, x_45, x_51);
x_54 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
x_55 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_55, 0, x_53);
lean_ctor_set(x_55, 1, x_46);
lean_ctor_set(x_55, 2, x_47);
lean_ctor_set(x_55, 3, x_48);
lean_ctor_set(x_55, 4, x_54);
lean_ctor_set(x_55, 5, x_49);
lean_ctor_set(x_55, 6, x_50);
x_56 = lean_st_ref_set(x_7, x_55, x_11);
x_57 = lean_ctor_get(x_56, 1);
lean_inc(x_57);
lean_dec(x_56);
x_58 = lean_st_ref_take(x_5, x_57);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
x_60 = lean_ctor_get(x_58, 1);
lean_inc(x_60);
lean_dec(x_58);
x_61 = lean_ctor_get(x_59, 0);
lean_inc(x_61);
x_62 = lean_ctor_get(x_59, 2);
lean_inc(x_62);
x_63 = lean_ctor_get(x_59, 3);
lean_inc(x_63);
x_64 = lean_ctor_get(x_59, 4);
lean_inc(x_64);
if (lean_is_exclusive(x_59)) {
 lean_ctor_release(x_59, 0);
 lean_ctor_release(x_59, 1);
 lean_ctor_release(x_59, 2);
 lean_ctor_release(x_59, 3);
 lean_ctor_release(x_59, 4);
 x_65 = x_59;
} else {
 lean_dec_ref(x_59);
 x_65 = lean_box(0);
}
x_66 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
if (lean_is_scalar(x_65)) {
 x_67 = lean_alloc_ctor(0, 5, 0);
} else {
 x_67 = x_65;
}
lean_ctor_set(x_67, 0, x_61);
lean_ctor_set(x_67, 1, x_66);
lean_ctor_set(x_67, 2, x_62);
lean_ctor_set(x_67, 3, x_63);
lean_ctor_set(x_67, 4, x_64);
x_68 = lean_st_ref_set(x_5, x_67, x_60);
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
if (lean_is_exclusive(x_68)) {
 lean_ctor_release(x_68, 0);
 lean_ctor_release(x_68, 1);
 x_70 = x_68;
} else {
 lean_dec_ref(x_68);
 x_70 = lean_box(0);
}
x_71 = lean_box(0);
if (lean_is_scalar(x_70)) {
 x_72 = lean_alloc_ctor(0, 2, 0);
} else {
 x_72 = x_70;
}
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_69);
return x_72;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_10 = lean_box_uint64(x_1);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_2);
x_12 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_13 = 2;
x_14 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9(x_12, x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_9 = lean_st_ref_take(x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_13 = lean_ctor_get(x_10, 0);
x_14 = lean_ctor_get(x_10, 4);
lean_dec(x_14);
x_15 = lean_box_uint64(x_1);
x_16 = lean_alloc_closure((void*)(l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1___boxed), 2, 1);
lean_closure_set(x_16, 0, x_15);
x_17 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_18 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_17, x_13, x_16);
x_19 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
lean_ctor_set(x_10, 4, x_19);
lean_ctor_set(x_10, 0, x_18);
x_20 = lean_st_ref_set(x_7, x_10, x_11);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
lean_dec(x_20);
x_22 = lean_st_ref_take(x_5, x_21);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = !lean_is_exclusive(x_23);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_26 = lean_ctor_get(x_23, 1);
lean_dec(x_26);
x_27 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
lean_ctor_set(x_23, 1, x_27);
x_28 = lean_st_ref_set(x_5, x_23, x_24);
x_29 = !lean_is_exclusive(x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_28, 0);
lean_dec(x_30);
x_31 = lean_box(0);
lean_ctor_set(x_28, 0, x_31);
return x_28;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_28, 1);
lean_inc(x_32);
lean_dec(x_28);
x_33 = lean_box(0);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_32);
return x_34;
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_35 = lean_ctor_get(x_23, 0);
x_36 = lean_ctor_get(x_23, 2);
x_37 = lean_ctor_get(x_23, 3);
x_38 = lean_ctor_get(x_23, 4);
lean_inc(x_38);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_23);
x_39 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
x_40 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_40, 0, x_35);
lean_ctor_set(x_40, 1, x_39);
lean_ctor_set(x_40, 2, x_36);
lean_ctor_set(x_40, 3, x_37);
lean_ctor_set(x_40, 4, x_38);
x_41 = lean_st_ref_set(x_5, x_40, x_24);
x_42 = lean_ctor_get(x_41, 1);
lean_inc(x_42);
if (lean_is_exclusive(x_41)) {
 lean_ctor_release(x_41, 0);
 lean_ctor_release(x_41, 1);
 x_43 = x_41;
} else {
 lean_dec_ref(x_41);
 x_43 = lean_box(0);
}
x_44 = lean_box(0);
if (lean_is_scalar(x_43)) {
 x_45 = lean_alloc_ctor(0, 2, 0);
} else {
 x_45 = x_43;
}
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_42);
return x_45;
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_46 = lean_ctor_get(x_10, 0);
x_47 = lean_ctor_get(x_10, 1);
x_48 = lean_ctor_get(x_10, 2);
x_49 = lean_ctor_get(x_10, 3);
x_50 = lean_ctor_get(x_10, 5);
x_51 = lean_ctor_get(x_10, 6);
lean_inc(x_51);
lean_inc(x_50);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_10);
x_52 = lean_box_uint64(x_1);
x_53 = lean_alloc_closure((void*)(l_Lean_RBNode_erase___at_Lean_Widget_erasePanelWidget___spec__1___boxed), 2, 1);
lean_closure_set(x_53, 0, x_52);
x_54 = l_Lean_Widget_evalPanelWidgets___closed__1;
x_55 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_54, x_46, x_53);
x_56 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1;
x_57 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_57, 0, x_55);
lean_ctor_set(x_57, 1, x_47);
lean_ctor_set(x_57, 2, x_48);
lean_ctor_set(x_57, 3, x_49);
lean_ctor_set(x_57, 4, x_56);
lean_ctor_set(x_57, 5, x_50);
lean_ctor_set(x_57, 6, x_51);
x_58 = lean_st_ref_set(x_7, x_57, x_11);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_st_ref_take(x_5, x_59);
x_61 = lean_ctor_get(x_60, 0);
lean_inc(x_61);
x_62 = lean_ctor_get(x_60, 1);
lean_inc(x_62);
lean_dec(x_60);
x_63 = lean_ctor_get(x_61, 0);
lean_inc(x_63);
x_64 = lean_ctor_get(x_61, 2);
lean_inc(x_64);
x_65 = lean_ctor_get(x_61, 3);
lean_inc(x_65);
x_66 = lean_ctor_get(x_61, 4);
lean_inc(x_66);
if (lean_is_exclusive(x_61)) {
 lean_ctor_release(x_61, 0);
 lean_ctor_release(x_61, 1);
 lean_ctor_release(x_61, 2);
 lean_ctor_release(x_61, 3);
 lean_ctor_release(x_61, 4);
 x_67 = x_61;
} else {
 lean_dec_ref(x_61);
 x_67 = lean_box(0);
}
x_68 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12;
if (lean_is_scalar(x_67)) {
 x_69 = lean_alloc_ctor(0, 5, 0);
} else {
 x_69 = x_67;
}
lean_ctor_set(x_69, 0, x_63);
lean_ctor_set(x_69, 1, x_68);
lean_ctor_set(x_69, 2, x_64);
lean_ctor_set(x_69, 3, x_65);
lean_ctor_set(x_69, 4, x_66);
x_70 = lean_st_ref_set(x_5, x_69, x_62);
x_71 = lean_ctor_get(x_70, 1);
lean_inc(x_71);
if (lean_is_exclusive(x_70)) {
 lean_ctor_release(x_70, 0);
 lean_ctor_release(x_70, 1);
 x_72 = x_70;
} else {
 lean_dec_ref(x_70);
 x_72 = lean_box(0);
}
x_73 = lean_box(0);
if (lean_is_scalar(x_72)) {
 x_74 = lean_alloc_ctor(0, 2, 0);
} else {
 x_74 = x_72;
}
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_71);
return x_74;
}
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_12 = lean_box(0);
x_13 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51;
lean_inc(x_1);
x_14 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_14, 0, x_1);
lean_ctor_set(x_14, 1, x_12);
lean_ctor_set(x_14, 2, x_13);
lean_inc(x_1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_1);
lean_ctor_set(x_15, 1, x_12);
x_16 = lean_box(0);
x_17 = 1;
x_18 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_18, 0, x_14);
lean_ctor_set(x_18, 1, x_2);
lean_ctor_set(x_18, 2, x_16);
lean_ctor_set(x_18, 3, x_15);
lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
lean_inc(x_10);
lean_inc(x_9);
x_20 = l_Lean_addAndCompile(x_19, x_9, x_10, x_11);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; uint64_t x_22; lean_object* x_23; uint8_t x_24; 
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
lean_dec(x_20);
x_22 = lean_ctor_get_uint64(x_3, sizeof(void*)*2);
x_23 = l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8(x_22, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_21);
lean_dec(x_10);
x_24 = !lean_is_exclusive(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; 
x_25 = lean_ctor_get(x_23, 0);
lean_dec(x_25);
x_26 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
lean_ctor_set(x_23, 0, x_26);
return x_23;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_23, 1);
lean_inc(x_27);
lean_dec(x_23);
x_28 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_27);
return x_29;
}
}
else
{
uint8_t x_30; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_1);
x_30 = !lean_is_exclusive(x_20);
if (x_30 == 0)
{
return x_20;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_20, 0);
x_32 = lean_ctor_get(x_20, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_20);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_12 = lean_box(0);
x_13 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51;
lean_inc(x_1);
x_14 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_14, 0, x_1);
lean_ctor_set(x_14, 1, x_12);
lean_ctor_set(x_14, 2, x_13);
lean_inc(x_1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_1);
lean_ctor_set(x_15, 1, x_12);
x_16 = lean_box(0);
x_17 = 1;
x_18 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_18, 0, x_14);
lean_ctor_set(x_18, 1, x_2);
lean_ctor_set(x_18, 2, x_16);
lean_ctor_set(x_18, 3, x_15);
lean_ctor_set_uint8(x_18, sizeof(void*)*4, x_17);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
lean_inc(x_10);
lean_inc(x_9);
x_20 = l_Lean_addAndCompile(x_19, x_9, x_10, x_11);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; uint64_t x_22; lean_object* x_23; uint8_t x_24; 
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
lean_dec(x_20);
x_22 = lean_ctor_get_uint64(x_3, sizeof(void*)*2);
x_23 = l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11(x_22, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_21);
lean_dec(x_10);
x_24 = !lean_is_exclusive(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; 
x_25 = lean_ctor_get(x_23, 0);
lean_dec(x_25);
x_26 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
lean_ctor_set(x_23, 0, x_26);
return x_23;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_23, 1);
lean_inc(x_27);
lean_dec(x_23);
x_28 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_27);
return x_29;
}
}
else
{
uint8_t x_30; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_1);
x_30 = !lean_is_exclusive(x_20);
if (x_30 == 0)
{
return x_20;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_20, 0);
x_32 = lean_ctor_get(x_20, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_20);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
}
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_instance", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("failed to compile expression, it contains metavariables", 55, 55);
return x_1;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
uint8_t x_14; 
x_14 = lean_usize_dec_lt(x_5, x_4);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_13);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_26; 
lean_dec(x_6);
x_16 = lean_array_uget(x_3, x_5);
lean_inc(x_16);
x_26 = l_Lean_Syntax_isOfKind(x_16, x_1);
if (x_26 == 0)
{
lean_object* x_27; uint8_t x_28; 
lean_dec(x_16);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_27 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(x_13);
x_28 = !lean_is_exclusive(x_27);
if (x_28 == 0)
{
return x_27;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_27, 0);
x_30 = lean_ctor_get(x_27, 1);
lean_inc(x_30);
lean_inc(x_29);
lean_dec(x_27);
x_31 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_31, 0, x_29);
lean_ctor_set(x_31, 1, x_30);
return x_31;
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; 
x_32 = lean_unsigned_to_nat(0u);
x_33 = l_Lean_Syntax_getArg(x_16, x_32);
lean_dec(x_16);
x_34 = l_Lean_Widget_eraseWidgetSpec___closed__2;
lean_inc(x_33);
x_35 = l_Lean_Syntax_isOfKind(x_33, x_34);
if (x_35 == 0)
{
lean_object* x_36; uint8_t x_37; 
x_36 = l_Lean_Widget_addWidgetSpec___closed__2;
lean_inc(x_33);
x_37 = l_Lean_Syntax_isOfKind(x_33, x_36);
if (x_37 == 0)
{
lean_object* x_38; uint8_t x_39; 
lean_dec(x_33);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_38 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(x_13);
x_39 = !lean_is_exclusive(x_38);
if (x_39 == 0)
{
return x_38;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_38, 0);
x_41 = lean_ctor_get(x_38, 1);
lean_inc(x_41);
lean_inc(x_40);
lean_dec(x_38);
x_42 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set(x_42, 1, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = l_Lean_Syntax_getArg(x_33, x_32);
x_44 = l_Lean_Widget_addWidgetSpec___closed__4;
lean_inc(x_43);
x_45 = l_Lean_Syntax_isOfKind(x_43, x_44);
if (x_45 == 0)
{
lean_object* x_46; uint8_t x_47; 
lean_dec(x_43);
lean_dec(x_33);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_46 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(x_13);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
return x_46;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_46, 0);
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_inc(x_48);
lean_dec(x_46);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_48);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_51 = lean_unsigned_to_nat(1u);
x_52 = l_Lean_Syntax_getArg(x_33, x_51);
lean_dec(x_33);
x_53 = l_Lean_Widget_widgetInstanceSpec___closed__2;
lean_inc(x_52);
x_54 = l_Lean_Syntax_isOfKind(x_52, x_53);
if (x_54 == 0)
{
lean_object* x_55; uint8_t x_56; 
lean_dec(x_52);
lean_dec(x_43);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_55 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(x_13);
x_56 = !lean_is_exclusive(x_55);
if (x_56 == 0)
{
return x_55;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_57 = lean_ctor_get(x_55, 0);
x_58 = lean_ctor_get(x_55, 1);
lean_inc(x_58);
lean_inc(x_57);
lean_dec(x_55);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_58);
return x_59;
}
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_alloc_closure((void*)(l_Lean_Elab_toAttributeKind___boxed), 3, 1);
lean_closure_set(x_60, 0, x_43);
lean_inc(x_11);
lean_inc(x_7);
x_61 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3(x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_61) == 0)
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_61, 0);
lean_inc(x_62);
x_63 = lean_ctor_get(x_61, 1);
lean_inc(x_63);
lean_dec(x_61);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_64 = l_Lean_Widget_elabWidgetInstanceSpec(x_52, x_7, x_8, x_9, x_10, x_11, x_12, x_63);
if (lean_obj_tag(x_64) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_ctor_get(x_64, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_64, 1);
lean_inc(x_66);
lean_dec(x_64);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_65);
x_67 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe(x_65, x_9, x_10, x_11, x_12, x_66);
if (lean_obj_tag(x_67) == 0)
{
uint8_t x_68; 
x_68 = lean_unbox(x_62);
lean_dec(x_62);
switch (x_68) {
case 0:
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; 
x_69 = lean_ctor_get(x_67, 0);
lean_inc(x_69);
x_70 = lean_ctor_get(x_67, 1);
lean_inc(x_70);
lean_dec(x_67);
x_71 = lean_ctor_get(x_69, 0);
lean_inc(x_71);
x_72 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2;
x_73 = l_Lean_Name_append(x_71, x_72);
x_74 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_73, x_11, x_12, x_70);
x_75 = !lean_is_exclusive(x_74);
if (x_75 == 0)
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; 
x_76 = lean_ctor_get(x_74, 0);
x_77 = lean_ctor_get(x_74, 1);
x_78 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_77);
x_79 = !lean_is_exclusive(x_78);
if (x_79 == 0)
{
lean_object* x_80; lean_object* x_81; uint8_t x_82; 
x_80 = lean_ctor_get(x_78, 0);
x_81 = lean_ctor_get(x_78, 1);
x_82 = l_Lean_Expr_hasMVar(x_80);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; 
lean_free_object(x_78);
lean_free_object(x_74);
x_83 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_84 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(x_76, x_80, x_69, x_83, x_7, x_8, x_9, x_10, x_11, x_12, x_81);
lean_dec(x_69);
if (lean_obj_tag(x_84) == 0)
{
lean_object* x_85; lean_object* x_86; 
x_85 = lean_ctor_get(x_84, 0);
lean_inc(x_85);
x_86 = lean_ctor_get(x_84, 1);
lean_inc(x_86);
lean_dec(x_84);
x_17 = x_85;
x_18 = x_86;
goto block_25;
}
else
{
uint8_t x_87; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_87 = !lean_is_exclusive(x_84);
if (x_87 == 0)
{
return x_84;
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_88 = lean_ctor_get(x_84, 0);
x_89 = lean_ctor_get(x_84, 1);
lean_inc(x_89);
lean_inc(x_88);
lean_dec(x_84);
x_90 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_90, 0, x_88);
lean_ctor_set(x_90, 1, x_89);
return x_90;
}
}
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; 
lean_dec(x_76);
lean_dec(x_69);
x_91 = l_Lean_indentExpr(x_80);
x_92 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
lean_ctor_set_tag(x_78, 7);
lean_ctor_set(x_78, 1, x_91);
lean_ctor_set(x_78, 0, x_92);
x_93 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
lean_ctor_set_tag(x_74, 7);
lean_ctor_set(x_74, 1, x_93);
lean_ctor_set(x_74, 0, x_78);
x_94 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_74, x_7, x_8, x_9, x_10, x_11, x_12, x_81);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_95 = !lean_is_exclusive(x_94);
if (x_95 == 0)
{
return x_94;
}
else
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_96 = lean_ctor_get(x_94, 0);
x_97 = lean_ctor_get(x_94, 1);
lean_inc(x_97);
lean_inc(x_96);
lean_dec(x_94);
x_98 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_98, 0, x_96);
lean_ctor_set(x_98, 1, x_97);
return x_98;
}
}
}
else
{
lean_object* x_99; lean_object* x_100; uint8_t x_101; 
x_99 = lean_ctor_get(x_78, 0);
x_100 = lean_ctor_get(x_78, 1);
lean_inc(x_100);
lean_inc(x_99);
lean_dec(x_78);
x_101 = l_Lean_Expr_hasMVar(x_99);
if (x_101 == 0)
{
lean_object* x_102; lean_object* x_103; 
lean_free_object(x_74);
x_102 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_103 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(x_76, x_99, x_69, x_102, x_7, x_8, x_9, x_10, x_11, x_12, x_100);
lean_dec(x_69);
if (lean_obj_tag(x_103) == 0)
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_ctor_get(x_103, 0);
lean_inc(x_104);
x_105 = lean_ctor_get(x_103, 1);
lean_inc(x_105);
lean_dec(x_103);
x_17 = x_104;
x_18 = x_105;
goto block_25;
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_106 = lean_ctor_get(x_103, 0);
lean_inc(x_106);
x_107 = lean_ctor_get(x_103, 1);
lean_inc(x_107);
if (lean_is_exclusive(x_103)) {
 lean_ctor_release(x_103, 0);
 lean_ctor_release(x_103, 1);
 x_108 = x_103;
} else {
 lean_dec_ref(x_103);
 x_108 = lean_box(0);
}
if (lean_is_scalar(x_108)) {
 x_109 = lean_alloc_ctor(1, 2, 0);
} else {
 x_109 = x_108;
}
lean_ctor_set(x_109, 0, x_106);
lean_ctor_set(x_109, 1, x_107);
return x_109;
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; 
lean_dec(x_76);
lean_dec(x_69);
x_110 = l_Lean_indentExpr(x_99);
x_111 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
x_112 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_112, 0, x_111);
lean_ctor_set(x_112, 1, x_110);
x_113 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
lean_ctor_set_tag(x_74, 7);
lean_ctor_set(x_74, 1, x_113);
lean_ctor_set(x_74, 0, x_112);
x_114 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_74, x_7, x_8, x_9, x_10, x_11, x_12, x_100);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_115 = lean_ctor_get(x_114, 0);
lean_inc(x_115);
x_116 = lean_ctor_get(x_114, 1);
lean_inc(x_116);
if (lean_is_exclusive(x_114)) {
 lean_ctor_release(x_114, 0);
 lean_ctor_release(x_114, 1);
 x_117 = x_114;
} else {
 lean_dec_ref(x_114);
 x_117 = lean_box(0);
}
if (lean_is_scalar(x_117)) {
 x_118 = lean_alloc_ctor(1, 2, 0);
} else {
 x_118 = x_117;
}
lean_ctor_set(x_118, 0, x_115);
lean_ctor_set(x_118, 1, x_116);
return x_118;
}
}
}
else
{
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; 
x_119 = lean_ctor_get(x_74, 0);
x_120 = lean_ctor_get(x_74, 1);
lean_inc(x_120);
lean_inc(x_119);
lean_dec(x_74);
x_121 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_120);
x_122 = lean_ctor_get(x_121, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_121, 1);
lean_inc(x_123);
if (lean_is_exclusive(x_121)) {
 lean_ctor_release(x_121, 0);
 lean_ctor_release(x_121, 1);
 x_124 = x_121;
} else {
 lean_dec_ref(x_121);
 x_124 = lean_box(0);
}
x_125 = l_Lean_Expr_hasMVar(x_122);
if (x_125 == 0)
{
lean_object* x_126; lean_object* x_127; 
lean_dec(x_124);
x_126 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_127 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(x_119, x_122, x_69, x_126, x_7, x_8, x_9, x_10, x_11, x_12, x_123);
lean_dec(x_69);
if (lean_obj_tag(x_127) == 0)
{
lean_object* x_128; lean_object* x_129; 
x_128 = lean_ctor_get(x_127, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_127, 1);
lean_inc(x_129);
lean_dec(x_127);
x_17 = x_128;
x_18 = x_129;
goto block_25;
}
else
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_130 = lean_ctor_get(x_127, 0);
lean_inc(x_130);
x_131 = lean_ctor_get(x_127, 1);
lean_inc(x_131);
if (lean_is_exclusive(x_127)) {
 lean_ctor_release(x_127, 0);
 lean_ctor_release(x_127, 1);
 x_132 = x_127;
} else {
 lean_dec_ref(x_127);
 x_132 = lean_box(0);
}
if (lean_is_scalar(x_132)) {
 x_133 = lean_alloc_ctor(1, 2, 0);
} else {
 x_133 = x_132;
}
lean_ctor_set(x_133, 0, x_130);
lean_ctor_set(x_133, 1, x_131);
return x_133;
}
}
else
{
lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; 
lean_dec(x_119);
lean_dec(x_69);
x_134 = l_Lean_indentExpr(x_122);
x_135 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
if (lean_is_scalar(x_124)) {
 x_136 = lean_alloc_ctor(7, 2, 0);
} else {
 x_136 = x_124;
 lean_ctor_set_tag(x_136, 7);
}
lean_ctor_set(x_136, 0, x_135);
lean_ctor_set(x_136, 1, x_134);
x_137 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
x_138 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_138, 0, x_136);
lean_ctor_set(x_138, 1, x_137);
x_139 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_138, x_7, x_8, x_9, x_10, x_11, x_12, x_123);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_140 = lean_ctor_get(x_139, 0);
lean_inc(x_140);
x_141 = lean_ctor_get(x_139, 1);
lean_inc(x_141);
if (lean_is_exclusive(x_139)) {
 lean_ctor_release(x_139, 0);
 lean_ctor_release(x_139, 1);
 x_142 = x_139;
} else {
 lean_dec_ref(x_139);
 x_142 = lean_box(0);
}
if (lean_is_scalar(x_142)) {
 x_143 = lean_alloc_ctor(1, 2, 0);
} else {
 x_143 = x_142;
}
lean_ctor_set(x_143, 0, x_140);
lean_ctor_set(x_143, 1, x_141);
return x_143;
}
}
}
case 1:
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
lean_dec(x_65);
x_144 = lean_ctor_get(x_67, 0);
lean_inc(x_144);
x_145 = lean_ctor_get(x_67, 1);
lean_inc(x_145);
lean_dec(x_67);
x_146 = l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10(x_144, x_7, x_8, x_9, x_10, x_11, x_12, x_145);
x_147 = lean_ctor_get(x_146, 1);
lean_inc(x_147);
lean_dec(x_146);
x_148 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
x_17 = x_148;
x_18 = x_147;
goto block_25;
}
default: 
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; 
x_149 = lean_ctor_get(x_67, 0);
lean_inc(x_149);
x_150 = lean_ctor_get(x_67, 1);
lean_inc(x_150);
lean_dec(x_67);
x_151 = lean_ctor_get(x_149, 0);
lean_inc(x_151);
x_152 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2;
x_153 = l_Lean_Name_append(x_151, x_152);
x_154 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_153, x_11, x_12, x_150);
x_155 = !lean_is_exclusive(x_154);
if (x_155 == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; 
x_156 = lean_ctor_get(x_154, 0);
x_157 = lean_ctor_get(x_154, 1);
x_158 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_157);
x_159 = !lean_is_exclusive(x_158);
if (x_159 == 0)
{
lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_160 = lean_ctor_get(x_158, 0);
x_161 = lean_ctor_get(x_158, 1);
x_162 = l_Lean_Expr_hasMVar(x_160);
if (x_162 == 0)
{
lean_object* x_163; lean_object* x_164; 
lean_free_object(x_158);
lean_free_object(x_154);
x_163 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_164 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(x_156, x_160, x_149, x_163, x_7, x_8, x_9, x_10, x_11, x_12, x_161);
lean_dec(x_149);
if (lean_obj_tag(x_164) == 0)
{
lean_object* x_165; lean_object* x_166; 
x_165 = lean_ctor_get(x_164, 0);
lean_inc(x_165);
x_166 = lean_ctor_get(x_164, 1);
lean_inc(x_166);
lean_dec(x_164);
x_17 = x_165;
x_18 = x_166;
goto block_25;
}
else
{
uint8_t x_167; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_167 = !lean_is_exclusive(x_164);
if (x_167 == 0)
{
return x_164;
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = lean_ctor_get(x_164, 0);
x_169 = lean_ctor_get(x_164, 1);
lean_inc(x_169);
lean_inc(x_168);
lean_dec(x_164);
x_170 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_170, 0, x_168);
lean_ctor_set(x_170, 1, x_169);
return x_170;
}
}
}
else
{
lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; 
lean_dec(x_156);
lean_dec(x_149);
x_171 = l_Lean_indentExpr(x_160);
x_172 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
lean_ctor_set_tag(x_158, 7);
lean_ctor_set(x_158, 1, x_171);
lean_ctor_set(x_158, 0, x_172);
x_173 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
lean_ctor_set_tag(x_154, 7);
lean_ctor_set(x_154, 1, x_173);
lean_ctor_set(x_154, 0, x_158);
x_174 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_154, x_7, x_8, x_9, x_10, x_11, x_12, x_161);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_175 = !lean_is_exclusive(x_174);
if (x_175 == 0)
{
return x_174;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_ctor_get(x_174, 0);
x_177 = lean_ctor_get(x_174, 1);
lean_inc(x_177);
lean_inc(x_176);
lean_dec(x_174);
x_178 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_178, 0, x_176);
lean_ctor_set(x_178, 1, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; uint8_t x_181; 
x_179 = lean_ctor_get(x_158, 0);
x_180 = lean_ctor_get(x_158, 1);
lean_inc(x_180);
lean_inc(x_179);
lean_dec(x_158);
x_181 = l_Lean_Expr_hasMVar(x_179);
if (x_181 == 0)
{
lean_object* x_182; lean_object* x_183; 
lean_free_object(x_154);
x_182 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_183 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(x_156, x_179, x_149, x_182, x_7, x_8, x_9, x_10, x_11, x_12, x_180);
lean_dec(x_149);
if (lean_obj_tag(x_183) == 0)
{
lean_object* x_184; lean_object* x_185; 
x_184 = lean_ctor_get(x_183, 0);
lean_inc(x_184);
x_185 = lean_ctor_get(x_183, 1);
lean_inc(x_185);
lean_dec(x_183);
x_17 = x_184;
x_18 = x_185;
goto block_25;
}
else
{
lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_186 = lean_ctor_get(x_183, 0);
lean_inc(x_186);
x_187 = lean_ctor_get(x_183, 1);
lean_inc(x_187);
if (lean_is_exclusive(x_183)) {
 lean_ctor_release(x_183, 0);
 lean_ctor_release(x_183, 1);
 x_188 = x_183;
} else {
 lean_dec_ref(x_183);
 x_188 = lean_box(0);
}
if (lean_is_scalar(x_188)) {
 x_189 = lean_alloc_ctor(1, 2, 0);
} else {
 x_189 = x_188;
}
lean_ctor_set(x_189, 0, x_186);
lean_ctor_set(x_189, 1, x_187);
return x_189;
}
}
else
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; 
lean_dec(x_156);
lean_dec(x_149);
x_190 = l_Lean_indentExpr(x_179);
x_191 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
x_192 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_192, 0, x_191);
lean_ctor_set(x_192, 1, x_190);
x_193 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
lean_ctor_set_tag(x_154, 7);
lean_ctor_set(x_154, 1, x_193);
lean_ctor_set(x_154, 0, x_192);
x_194 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_154, x_7, x_8, x_9, x_10, x_11, x_12, x_180);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_195 = lean_ctor_get(x_194, 0);
lean_inc(x_195);
x_196 = lean_ctor_get(x_194, 1);
lean_inc(x_196);
if (lean_is_exclusive(x_194)) {
 lean_ctor_release(x_194, 0);
 lean_ctor_release(x_194, 1);
 x_197 = x_194;
} else {
 lean_dec_ref(x_194);
 x_197 = lean_box(0);
}
if (lean_is_scalar(x_197)) {
 x_198 = lean_alloc_ctor(1, 2, 0);
} else {
 x_198 = x_197;
}
lean_ctor_set(x_198, 0, x_195);
lean_ctor_set(x_198, 1, x_196);
return x_198;
}
}
}
else
{
lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; 
x_199 = lean_ctor_get(x_154, 0);
x_200 = lean_ctor_get(x_154, 1);
lean_inc(x_200);
lean_inc(x_199);
lean_dec(x_154);
x_201 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_200);
x_202 = lean_ctor_get(x_201, 0);
lean_inc(x_202);
x_203 = lean_ctor_get(x_201, 1);
lean_inc(x_203);
if (lean_is_exclusive(x_201)) {
 lean_ctor_release(x_201, 0);
 lean_ctor_release(x_201, 1);
 x_204 = x_201;
} else {
 lean_dec_ref(x_201);
 x_204 = lean_box(0);
}
x_205 = l_Lean_Expr_hasMVar(x_202);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; 
lean_dec(x_204);
x_206 = lean_box(0);
lean_inc(x_12);
lean_inc(x_11);
x_207 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(x_199, x_202, x_149, x_206, x_7, x_8, x_9, x_10, x_11, x_12, x_203);
lean_dec(x_149);
if (lean_obj_tag(x_207) == 0)
{
lean_object* x_208; lean_object* x_209; 
x_208 = lean_ctor_get(x_207, 0);
lean_inc(x_208);
x_209 = lean_ctor_get(x_207, 1);
lean_inc(x_209);
lean_dec(x_207);
x_17 = x_208;
x_18 = x_209;
goto block_25;
}
else
{
lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_210 = lean_ctor_get(x_207, 0);
lean_inc(x_210);
x_211 = lean_ctor_get(x_207, 1);
lean_inc(x_211);
if (lean_is_exclusive(x_207)) {
 lean_ctor_release(x_207, 0);
 lean_ctor_release(x_207, 1);
 x_212 = x_207;
} else {
 lean_dec_ref(x_207);
 x_212 = lean_box(0);
}
if (lean_is_scalar(x_212)) {
 x_213 = lean_alloc_ctor(1, 2, 0);
} else {
 x_213 = x_212;
}
lean_ctor_set(x_213, 0, x_210);
lean_ctor_set(x_213, 1, x_211);
return x_213;
}
}
else
{
lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
lean_dec(x_199);
lean_dec(x_149);
x_214 = l_Lean_indentExpr(x_202);
x_215 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4;
if (lean_is_scalar(x_204)) {
 x_216 = lean_alloc_ctor(7, 2, 0);
} else {
 x_216 = x_204;
 lean_ctor_set_tag(x_216, 7);
}
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_214);
x_217 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5;
x_218 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_218, 0, x_216);
lean_ctor_set(x_218, 1, x_217);
x_219 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_218, x_7, x_8, x_9, x_10, x_11, x_12, x_203);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_220 = lean_ctor_get(x_219, 0);
lean_inc(x_220);
x_221 = lean_ctor_get(x_219, 1);
lean_inc(x_221);
if (lean_is_exclusive(x_219)) {
 lean_ctor_release(x_219, 0);
 lean_ctor_release(x_219, 1);
 x_222 = x_219;
} else {
 lean_dec_ref(x_219);
 x_222 = lean_box(0);
}
if (lean_is_scalar(x_222)) {
 x_223 = lean_alloc_ctor(1, 2, 0);
} else {
 x_223 = x_222;
}
lean_ctor_set(x_223, 0, x_220);
lean_ctor_set(x_223, 1, x_221);
return x_223;
}
}
}
}
}
else
{
uint8_t x_224; 
lean_dec(x_65);
lean_dec(x_62);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_224 = !lean_is_exclusive(x_67);
if (x_224 == 0)
{
return x_67;
}
else
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; 
x_225 = lean_ctor_get(x_67, 0);
x_226 = lean_ctor_get(x_67, 1);
lean_inc(x_226);
lean_inc(x_225);
lean_dec(x_67);
x_227 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_227, 0, x_225);
lean_ctor_set(x_227, 1, x_226);
return x_227;
}
}
}
else
{
uint8_t x_228; 
lean_dec(x_62);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_228 = !lean_is_exclusive(x_64);
if (x_228 == 0)
{
return x_64;
}
else
{
lean_object* x_229; lean_object* x_230; lean_object* x_231; 
x_229 = lean_ctor_get(x_64, 0);
x_230 = lean_ctor_get(x_64, 1);
lean_inc(x_230);
lean_inc(x_229);
lean_dec(x_64);
x_231 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_231, 0, x_229);
lean_ctor_set(x_231, 1, x_230);
return x_231;
}
}
}
else
{
uint8_t x_232; 
lean_dec(x_52);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_232 = !lean_is_exclusive(x_61);
if (x_232 == 0)
{
return x_61;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_233 = lean_ctor_get(x_61, 0);
x_234 = lean_ctor_get(x_61, 1);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_61);
x_235 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_235, 0, x_233);
lean_ctor_set(x_235, 1, x_234);
return x_235;
}
}
}
}
}
}
else
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; 
x_236 = lean_unsigned_to_nat(1u);
x_237 = l_Lean_Syntax_getArg(x_33, x_236);
lean_dec(x_33);
x_238 = l_Lean_Widget_widgetInstanceSpec___closed__6;
lean_inc(x_237);
x_239 = l_Lean_Syntax_isOfKind(x_237, x_238);
if (x_239 == 0)
{
lean_object* x_240; uint8_t x_241; 
lean_dec(x_237);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_240 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___rarg(x_13);
x_241 = !lean_is_exclusive(x_240);
if (x_241 == 0)
{
return x_240;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; 
x_242 = lean_ctor_get(x_240, 0);
x_243 = lean_ctor_get(x_240, 1);
lean_inc(x_243);
lean_inc(x_242);
lean_dec(x_240);
x_244 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_244, 0, x_242);
lean_ctor_set(x_244, 1, x_243);
return x_244;
}
}
else
{
lean_object* x_245; uint8_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; lean_object* x_265; 
x_245 = lean_ctor_get(x_11, 5);
lean_inc(x_245);
x_246 = 0;
x_247 = l_Lean_SourceInfo_fromRef(x_245, x_246);
lean_dec(x_245);
x_248 = lean_ctor_get(x_11, 10);
lean_inc(x_248);
x_249 = lean_st_ref_get(x_12, x_13);
x_250 = lean_ctor_get(x_249, 0);
lean_inc(x_250);
x_251 = lean_ctor_get(x_249, 1);
lean_inc(x_251);
lean_dec(x_249);
x_252 = lean_ctor_get(x_250, 0);
lean_inc(x_252);
lean_dec(x_250);
x_253 = lean_environment_main_module(x_252);
x_254 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32;
x_255 = l_Lean_addMacroScope(x_253, x_254, x_248);
x_256 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31;
x_257 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7;
lean_inc(x_247);
x_258 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_258, 0, x_247);
lean_ctor_set(x_258, 1, x_256);
lean_ctor_set(x_258, 2, x_255);
lean_ctor_set(x_258, 3, x_257);
x_259 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7;
lean_inc(x_247);
x_260 = l_Lean_Syntax_node1(x_247, x_259, x_237);
x_261 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29;
x_262 = l_Lean_Syntax_node2(x_247, x_261, x_258, x_260);
x_263 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9;
x_264 = 1;
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_265 = l_Lean_Elab_Term_elabTerm(x_262, x_263, x_264, x_264, x_7, x_8, x_9, x_10, x_11, x_12, x_251);
if (lean_obj_tag(x_265) == 0)
{
lean_object* x_266; lean_object* x_267; lean_object* x_268; 
x_266 = lean_ctor_get(x_265, 0);
lean_inc(x_266);
x_267 = lean_ctor_get(x_265, 1);
lean_inc(x_267);
lean_dec(x_265);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
x_268 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe(x_266, x_9, x_10, x_11, x_12, x_267);
if (lean_obj_tag(x_268) == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; uint64_t x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; 
x_269 = lean_ctor_get(x_268, 0);
lean_inc(x_269);
x_270 = lean_ctor_get(x_268, 1);
lean_inc(x_270);
lean_dec(x_268);
x_271 = lean_ctor_get(x_269, 1);
lean_inc(x_271);
lean_dec(x_269);
x_272 = lean_unbox_uint64(x_271);
lean_dec(x_271);
x_273 = l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12(x_272, x_7, x_8, x_9, x_10, x_11, x_12, x_270);
x_274 = lean_ctor_get(x_273, 1);
lean_inc(x_274);
lean_dec(x_273);
x_275 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1;
x_17 = x_275;
x_18 = x_274;
goto block_25;
}
else
{
uint8_t x_276; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_276 = !lean_is_exclusive(x_268);
if (x_276 == 0)
{
return x_268;
}
else
{
lean_object* x_277; lean_object* x_278; lean_object* x_279; 
x_277 = lean_ctor_get(x_268, 0);
x_278 = lean_ctor_get(x_268, 1);
lean_inc(x_278);
lean_inc(x_277);
lean_dec(x_268);
x_279 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_279, 0, x_277);
lean_ctor_set(x_279, 1, x_278);
return x_279;
}
}
}
else
{
uint8_t x_280; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_280 = !lean_is_exclusive(x_265);
if (x_280 == 0)
{
return x_265;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_ctor_get(x_265, 0);
x_282 = lean_ctor_get(x_265, 1);
lean_inc(x_282);
lean_inc(x_281);
lean_dec(x_265);
x_283 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_283, 0, x_281);
lean_ctor_set(x_283, 1, x_282);
return x_283;
}
}
}
}
}
block_25:
{
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_19; lean_object* x_20; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_19 = lean_ctor_get(x_17, 0);
lean_inc(x_19);
lean_dec(x_17);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_18);
return x_20;
}
else
{
lean_object* x_21; size_t x_22; size_t x_23; 
x_21 = lean_ctor_get(x_17, 0);
lean_inc(x_21);
lean_dec(x_17);
x_22 = 1;
x_23 = lean_usize_add(x_5, x_22);
x_5 = x_23;
x_6 = x_21;
x_13 = x_18;
goto _start;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_box(0);
x_14 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13(x_1, x_2, x_3, x_4, x_5, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; 
x_16 = lean_ctor_get(x_14, 0);
lean_dec(x_16);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
lean_dec(x_14);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_13);
lean_ctor_set(x_18, 1, x_17);
return x_18;
}
}
else
{
uint8_t x_19; 
x_19 = !lean_is_exclusive(x_14);
if (x_19 == 0)
{
return x_14;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_14, 0);
x_21 = lean_ctor_get(x_14, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_14);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
}
static lean_object* _init_l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1() {
_start:
{
size_t x_1; lean_object* x_2; 
x_1 = 0;
x_2 = lean_box_usize(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Widget_showPanelWidgetsCmd___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_8 = lean_unsigned_to_nat(2u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
lean_dec(x_1);
x_10 = lean_box(0);
x_11 = l_Lean_Syntax_getArgs(x_9);
lean_dec(x_9);
x_12 = l_Lean_Syntax_TSepArray_getElems___rarg(x_11);
lean_dec(x_11);
x_13 = lean_array_get_size(x_12);
x_14 = lean_usize_of_nat(x_13);
lean_dec(x_13);
x_15 = l_Lean_Widget_showWidgetSpec___closed__2;
x_16 = lean_box_usize(x_14);
x_17 = l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1;
x_18 = lean_alloc_closure((void*)(l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1___boxed), 12, 5);
lean_closure_set(x_18, 0, x_15);
lean_closure_set(x_18, 1, x_10);
lean_closure_set(x_18, 2, x_12);
lean_closure_set(x_18, 3, x_16);
lean_closure_set(x_18, 4, x_17);
x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_2, x_3, x_4);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwError___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_throwErrorAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__7(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_liftMacroM___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; lean_object* x_12; 
x_11 = lean_unbox(x_3);
lean_dec(x_3);
x_12 = l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint64_t x_10; lean_object* x_11; 
x_10 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_11 = l_Lean_Widget_addPanelWidgetGlobal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__8(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Widget_addPanelWidgetLocal___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint64_t x_10; lean_object* x_11; 
x_10 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_11 = l_Lean_Widget_addPanelWidgetScoped___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__11(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint64_t x_9; lean_object* x_10; 
x_9 = lean_unbox_uint64(x_1);
lean_dec(x_1);
x_10 = l_Lean_Widget_erasePanelWidget___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__12(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
size_t x_14; size_t x_15; lean_object* x_16; 
x_14 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_15 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_16 = l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
size_t x_13; size_t x_14; lean_object* x_15; 
x_13 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_14 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_15 = l_Lean_Widget_elabShowPanelWidgetsCmd___lambda__1(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabShowPanelWidgetsCmd___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_elabShowPanelWidgetsCmd(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widgetCmd", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_widgetCmd___closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("#widget ", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_widgetCmd___closed__3;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetInstanceSpec___closed__4;
x_2 = l_Lean_Widget_widgetCmd___closed__4;
x_3 = l_Lean_Widget_widgetInstanceSpec;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Widget_widgetCmd___closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_Widget_widgetCmd___closed__5;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_widgetCmd() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_widgetCmd___closed__6;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_10 = l_Lean_Widget_elabWidgetInstanceSpec(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
lean_inc(x_8);
lean_inc(x_7);
x_13 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe(x_11, x_5, x_6, x_7, x_8, x_12);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; lean_object* x_18; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_ctor_get_uint64(x_14, sizeof(void*)*2);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
lean_dec(x_14);
x_18 = l_Lean_Widget_savePanelWidgetInfo(x_16, x_17, x_2, x_7, x_8, x_15);
lean_dec(x_8);
lean_dec(x_7);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_2);
x_19 = !lean_is_exclusive(x_13);
if (x_19 == 0)
{
return x_13;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_13, 0);
x_21 = lean_ctor_get(x_13, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_13);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_23 = !lean_is_exclusive(x_10);
if (x_23 == 0)
{
return x_10;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_10, 0);
x_25 = lean_ctor_get(x_10, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_10);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Widget_widgetCmd___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_alloc_closure((void*)(l_Lean_Widget_elabWidgetCmd___lambda__1), 9, 2);
lean_closure_set(x_10, 0, x_9);
lean_closure_set(x_10, 1, x_1);
x_11 = l_Lean_Elab_Command_liftTermElabM___rarg(x_10, x_2, x_3, x_4);
return x_11;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_elabWidgetCmd___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Widget_elabWidgetCmd(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_instInhabitedUserWidgetDefinition() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("name", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("javascript", 10, 10);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628_(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_5, 0, x_3);
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
lean_ctor_set(x_1, 1, x_5);
lean_ctor_set(x_1, 0, x_6);
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_4);
x_10 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2;
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_9);
x_12 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_8);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_List_join___rarg(x_14);
x_16 = l_Lean_Json_mkObj(x_15);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_17 = lean_ctor_get(x_1, 0);
x_18 = lean_ctor_get(x_1, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_1);
x_19 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_19, 0, x_17);
x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
x_22 = lean_box(0);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_24, 0, x_18);
x_25 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2;
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_24);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_22);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_22);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_23);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_List_join___rarg(x_29);
x_31 = l_Lean_Json_mkObj(x_30);
return x_31;
}
}
}
static lean_object* _init_l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instToJsonUserWidgetDefinition() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("UserWidgetDefinition", 20, 20);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_3, 0);
lean_inc(x_12);
lean_dec(x_3);
x_13 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2;
x_14 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_13);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
lean_dec(x_12);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12;
x_18 = lean_string_append(x_17, x_16);
lean_dec(x_16);
lean_ctor_set(x_14, 0, x_18);
return x_14;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_19 = lean_ctor_get(x_14, 0);
lean_inc(x_19);
lean_dec(x_14);
x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
x_22 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
}
else
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_14);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_14, 0);
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_12);
lean_ctor_set(x_25, 1, x_24);
lean_ctor_set(x_14, 0, x_25);
return x_14;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_14, 0);
lean_inc(x_26);
lean_dec(x_14);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_12);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
}
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_instFromJsonUserWidgetDefinition() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToModuleUserWidgetDefinition(lean_object* x_1) {
_start:
{
lean_object* x_2; uint64_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = lean_string_hash(x_2);
x_4 = lean_box_uint64(x_3);
lean_inc(x_2);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_instToModuleUserWidgetDefinition___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Widget_instToModuleUserWidgetDefinition(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2;
x_5 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_4, x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = l_Lean_Widget_widgetModuleAttrImpl;
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
x_9 = lean_box(x_3);
x_10 = lean_apply_6(x_8, x_1, x_2, x_9, x_4, x_5, x_6);
return x_10;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_private", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("UserWidget", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widgetAttrImpl", 14, 14);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widget", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("The `@[widget]` attribute has been deprecated, use `@[widget_module]` instead.", 78, 78);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14;
x_4 = 1;
x_5 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2___boxed), 6, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16;
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___rarg(x_1, x_2, x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__1(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = lean_unbox(x_3);
lean_dec(x_3);
x_8 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___elambda__2(x_1, x_2, x_7, x_4, x_5, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_3830_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl;
x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_ctor_set_tag(x_3, 3);
x_5 = l_Lean_MessageData_ofFormat(x_3);
x_6 = l_Lean_throwError___rarg(x_1, x_2, x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec(x_3);
x_8 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_8, 0, x_7);
x_9 = l_Lean_MessageData_ofFormat(x_8);
x_10 = l_Lean_throwError___rarg(x_1, x_2, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_dec(x_2);
x_11 = lean_ctor_get(x_3, 0);
lean_inc(x_11);
lean_dec(x_3);
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
lean_dec(x_1);
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_apply_2(x_13, lean_box(0), x_11);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1___rarg), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_7 = l_Lean_Environment_evalConstCheck___rarg(x_1, x_5, x_6, x_2);
x_8 = l_Lean_ofExcept___at___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___spec__1___rarg(x_3, x_4, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1___boxed), 5, 4);
lean_closure_set(x_7, 0, x_6);
lean_closure_set(x_7, 1, x_1);
lean_closure_set(x_7, 2, x_2);
lean_closure_set(x_7, 3, x_3);
x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 0);
lean_inc(x_7);
lean_dec(x_2);
lean_inc(x_6);
x_8 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__2), 6, 5);
lean_closure_set(x_8, 0, x_5);
lean_closure_set(x_8, 1, x_1);
lean_closure_set(x_8, 2, x_4);
lean_closure_set(x_8, 3, x_6);
lean_closure_set(x_8, 4, x_3);
x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_ctor_get(x_2, 5);
x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_5);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_5);
lean_ctor_set(x_9, 1, x_8);
lean_ctor_set_tag(x_6, 1);
lean_ctor_set(x_6, 0, x_9);
return x_6;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_6, 0);
x_11 = lean_ctor_get(x_6, 1);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_6);
lean_inc(x_5);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_10);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_1);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_ctor_set_tag(x_1, 3);
x_6 = l_Lean_MessageData_ofFormat(x_1);
x_7 = l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3(x_6, x_2, x_3, x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec(x_1);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = l_Lean_MessageData_ofFormat(x_9);
x_11 = l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3(x_10, x_2, x_3, x_4);
return x_11;
}
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
lean_dec(x_1);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_4);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_st_ref_get(x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_ctor_get(x_2, 2);
x_10 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_11 = l_Lean_Environment_evalConstCheck___rarg(x_8, x_9, x_10, x_1);
x_12 = l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2(x_11, x_2, x_3, x_7);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1(x_1, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_ctor_get(x_8, 1);
lean_inc(x_10);
lean_dec(x_8);
x_11 = lean_string_hash(x_10);
lean_dec(x_10);
x_12 = lean_alloc_closure((void*)(l_StateT_pure___at_Lean_Server_instRpcEncodableStateMRpcObjectStore___spec__1___rarg), 2, 1);
lean_closure_set(x_12, 0, x_2);
x_13 = l_Lean_Widget_savePanelWidgetInfo(x_11, x_12, x_3, x_4, x_5, x_9);
return x_13;
}
else
{
uint8_t x_14; 
lean_dec(x_3);
lean_dec(x_2);
x_14 = !lean_is_exclusive(x_7);
if (x_14 == 0)
{
return x_7;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_7, 0);
x_16 = lean_ctor_get(x_7, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_7);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
return x_17;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_throwError___at_Lean_Widget_saveWidgetInfo___spec__3(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_ofExcept___at_Lean_Widget_saveWidgetInfo___spec__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_saveWidgetInfo___spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_saveWidgetInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Widget_saveWidgetInfo(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 7)
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = l_Lean_Elab_Info_pos_x3f(x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; 
lean_dec(x_1);
x_8 = lean_box(0);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
lean_dec(x_7);
x_10 = l_Lean_Elab_Info_tailPos_x3f(x_4);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec(x_9);
lean_dec(x_1);
x_11 = lean_box(0);
return x_11;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_1);
x_14 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_9);
lean_dec(x_9);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_nat_dec_le(x_15, x_2);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_free_object(x_10);
lean_dec(x_13);
lean_dec(x_1);
x_17 = lean_box(0);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_18 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_13);
lean_dec(x_13);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
lean_dec(x_18);
x_20 = lean_nat_dec_le(x_2, x_19);
lean_dec(x_19);
if (x_20 == 0)
{
lean_object* x_21; 
lean_free_object(x_10);
x_21 = lean_box(0);
return x_21;
}
else
{
lean_inc(x_6);
lean_ctor_set(x_10, 0, x_6);
return x_10;
}
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_22 = lean_ctor_get(x_10, 0);
lean_inc(x_22);
lean_dec(x_10);
lean_inc(x_1);
x_23 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_9);
lean_dec(x_9);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_nat_dec_le(x_24, x_2);
lean_dec(x_24);
if (x_25 == 0)
{
lean_object* x_26; 
lean_dec(x_22);
lean_dec(x_1);
x_26 = lean_box(0);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_27 = l_Lean_FileMap_utf8PosToLspPos(x_1, x_22);
lean_dec(x_22);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_nat_dec_le(x_2, x_28);
lean_dec(x_28);
if (x_29 == 0)
{
lean_object* x_30; 
x_30 = lean_box(0);
return x_30;
}
else
{
lean_object* x_31; 
lean_inc(x_6);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_6);
return x_31;
}
}
}
}
}
}
else
{
lean_object* x_32; 
lean_dec(x_1);
x_32 = lean_box(0);
return x_32;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_closure((void*)(l_Lean_Widget_widgetInfosAt_x3f___lambda__1___boxed), 5, 2);
lean_closure_set(x_4, 0, x_1);
lean_closure_set(x_4, 1, x_3);
x_5 = l_Lean_Elab_InfoTree_deepestNodes___rarg(x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_widgetInfosAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Widget_widgetInfosAt_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_6;
}
}
static lean_object* _init_l_Lean_Widget_PanelWidgetInstance_range_x3f___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_PanelWidgetInstance_name_x3f___default() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("PanelWidgetInstance", 19, 19);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("RpcEncodablePacket", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_@", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_hyg", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15;
x_2 = lean_unsigned_to_nat(4152u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("range", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("range\?", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("name\?", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_2 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1927____spec__2(x_1, x_2);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec(x_3);
x_5 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20;
lean_inc(x_1);
x_6 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1927____spec__2(x_1, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36;
lean_inc(x_1);
x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1927____spec__2(x_1, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28;
lean_inc(x_1);
x_12 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_fromJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_345____spec__1(x_1, x_11);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_fromJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_345____spec__1(x_1, x_14);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_18, 0, x_4);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 2, x_10);
lean_ctor_set(x_18, 3, x_13);
lean_ctor_set(x_18, 4, x_17);
lean_ctor_set(x_15, 0, x_18);
return x_15;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_20, 0, x_4);
lean_ctor_set(x_20, 1, x_7);
lean_ctor_set(x_20, 2, x_10);
lean_ctor_set(x_20, 3, x_13);
lean_ctor_set(x_20, 4, x_19);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
x_5 = lean_ctor_get(x_1, 3);
x_6 = lean_ctor_get(x_1, 4);
x_7 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12;
lean_inc(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_2);
x_9 = lean_box(0);
x_10 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20;
lean_inc(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_3);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_9);
x_14 = l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36;
lean_inc(x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_4);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_9);
x_17 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28;
x_18 = l_Lean_Json_opt___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_558____spec__1(x_17, x_5);
x_19 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1;
x_20 = l_Lean_Json_opt___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_SubexprInfo_toJsonRpcEncodablePacket____x40_Lean_Widget_InteractiveCode___hyg_558____spec__1(x_19, x_6);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_9);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_18);
lean_ctor_set(x_22, 1, x_21);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_16);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_13);
lean_ctor_set(x_24, 1, x_23);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_10);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_List_join___rarg(x_25);
x_27 = l_Lean_Json_mkObj(x_26);
return x_27;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571____boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_enc____x40_Lean_Widget_UserWidget___hyg_4152_(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = 1;
x_6 = l_Lean_Name_toString(x_4, x_5);
x_7 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_7, 0, x_6);
x_8 = lean_ctor_get_uint64(x_3, sizeof(void*)*2);
x_9 = lean_uint64_to_nat(x_8);
x_10 = l_Lean_bignumToJson(x_9);
x_11 = lean_ctor_get(x_3, 1);
lean_inc(x_11);
lean_dec(x_3);
x_12 = lean_apply_1(x_11, x_2);
x_13 = lean_ctor_get(x_1, 1);
lean_inc(x_13);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_12);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_12, 0);
x_16 = lean_box(0);
x_17 = lean_ctor_get(x_1, 2);
lean_inc(x_17);
lean_dec(x_1);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_18, 0, x_7);
lean_ctor_set(x_18, 1, x_10);
lean_ctor_set(x_18, 2, x_15);
lean_ctor_set(x_18, 3, x_16);
lean_ctor_set(x_18, 4, x_16);
x_19 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_18);
lean_dec(x_18);
lean_ctor_set(x_12, 0, x_19);
return x_12;
}
else
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_17);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_21 = lean_ctor_get(x_17, 0);
x_22 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_17, 0, x_22);
x_23 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_23, 0, x_7);
lean_ctor_set(x_23, 1, x_10);
lean_ctor_set(x_23, 2, x_15);
lean_ctor_set(x_23, 3, x_16);
lean_ctor_set(x_23, 4, x_17);
x_24 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_23);
lean_dec(x_23);
lean_ctor_set(x_12, 0, x_24);
return x_12;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_25 = lean_ctor_get(x_17, 0);
lean_inc(x_25);
lean_dec(x_17);
x_26 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
x_28 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_28, 0, x_7);
lean_ctor_set(x_28, 1, x_10);
lean_ctor_set(x_28, 2, x_15);
lean_ctor_set(x_28, 3, x_16);
lean_ctor_set(x_28, 4, x_27);
x_29 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_28);
lean_dec(x_28);
lean_ctor_set(x_12, 0, x_29);
return x_12;
}
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_30 = lean_ctor_get(x_12, 0);
x_31 = lean_ctor_get(x_12, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_12);
x_32 = lean_box(0);
x_33 = lean_ctor_get(x_1, 2);
lean_inc(x_33);
lean_dec(x_1);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_34, 0, x_7);
lean_ctor_set(x_34, 1, x_10);
lean_ctor_set(x_34, 2, x_30);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set(x_34, 4, x_32);
x_35 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_34);
lean_dec(x_34);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_31);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_37 = lean_ctor_get(x_33, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_33)) {
 lean_ctor_release(x_33, 0);
 x_38 = x_33;
} else {
 lean_dec_ref(x_33);
 x_38 = lean_box(0);
}
x_39 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_39, 0, x_37);
if (lean_is_scalar(x_38)) {
 x_40 = lean_alloc_ctor(1, 1, 0);
} else {
 x_40 = x_38;
}
lean_ctor_set(x_40, 0, x_39);
x_41 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_41, 0, x_7);
lean_ctor_set(x_41, 1, x_10);
lean_ctor_set(x_41, 2, x_30);
lean_ctor_set(x_41, 3, x_32);
lean_ctor_set(x_41, 4, x_40);
x_42 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_41);
lean_dec(x_41);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_31);
return x_43;
}
}
}
else
{
uint8_t x_44; 
x_44 = !lean_is_exclusive(x_12);
if (x_44 == 0)
{
uint8_t x_45; 
x_45 = !lean_is_exclusive(x_13);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_46 = lean_ctor_get(x_12, 0);
x_47 = lean_ctor_get(x_13, 0);
x_48 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_738_(x_47);
lean_ctor_set(x_13, 0, x_48);
x_49 = lean_ctor_get(x_1, 2);
lean_inc(x_49);
lean_dec(x_1);
if (lean_obj_tag(x_49) == 0)
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_box(0);
x_51 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_51, 0, x_7);
lean_ctor_set(x_51, 1, x_10);
lean_ctor_set(x_51, 2, x_46);
lean_ctor_set(x_51, 3, x_13);
lean_ctor_set(x_51, 4, x_50);
x_52 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_51);
lean_dec(x_51);
lean_ctor_set(x_12, 0, x_52);
return x_12;
}
else
{
uint8_t x_53; 
x_53 = !lean_is_exclusive(x_49);
if (x_53 == 0)
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_54 = lean_ctor_get(x_49, 0);
x_55 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_55, 0, x_54);
lean_ctor_set(x_49, 0, x_55);
x_56 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_56, 0, x_7);
lean_ctor_set(x_56, 1, x_10);
lean_ctor_set(x_56, 2, x_46);
lean_ctor_set(x_56, 3, x_13);
lean_ctor_set(x_56, 4, x_49);
x_57 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_56);
lean_dec(x_56);
lean_ctor_set(x_12, 0, x_57);
return x_12;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_58 = lean_ctor_get(x_49, 0);
lean_inc(x_58);
lean_dec(x_49);
x_59 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_59, 0, x_58);
x_60 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_60, 0, x_59);
x_61 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_61, 0, x_7);
lean_ctor_set(x_61, 1, x_10);
lean_ctor_set(x_61, 2, x_46);
lean_ctor_set(x_61, 3, x_13);
lean_ctor_set(x_61, 4, x_60);
x_62 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_61);
lean_dec(x_61);
lean_ctor_set(x_12, 0, x_62);
return x_12;
}
}
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_63 = lean_ctor_get(x_12, 0);
x_64 = lean_ctor_get(x_13, 0);
lean_inc(x_64);
lean_dec(x_13);
x_65 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_738_(x_64);
x_66 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_66, 0, x_65);
x_67 = lean_ctor_get(x_1, 2);
lean_inc(x_67);
lean_dec(x_1);
if (lean_obj_tag(x_67) == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_68 = lean_box(0);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_7);
lean_ctor_set(x_69, 1, x_10);
lean_ctor_set(x_69, 2, x_63);
lean_ctor_set(x_69, 3, x_66);
lean_ctor_set(x_69, 4, x_68);
x_70 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_69);
lean_dec(x_69);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
x_71 = lean_ctor_get(x_67, 0);
lean_inc(x_71);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 x_72 = x_67;
} else {
 lean_dec_ref(x_67);
 x_72 = lean_box(0);
}
x_73 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_73, 0, x_71);
if (lean_is_scalar(x_72)) {
 x_74 = lean_alloc_ctor(1, 1, 0);
} else {
 x_74 = x_72;
}
lean_ctor_set(x_74, 0, x_73);
x_75 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_75, 0, x_7);
lean_ctor_set(x_75, 1, x_10);
lean_ctor_set(x_75, 2, x_63);
lean_ctor_set(x_75, 3, x_66);
lean_ctor_set(x_75, 4, x_74);
x_76 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_75);
lean_dec(x_75);
lean_ctor_set(x_12, 0, x_76);
return x_12;
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_77 = lean_ctor_get(x_12, 0);
x_78 = lean_ctor_get(x_12, 1);
lean_inc(x_78);
lean_inc(x_77);
lean_dec(x_12);
x_79 = lean_ctor_get(x_13, 0);
lean_inc(x_79);
if (lean_is_exclusive(x_13)) {
 lean_ctor_release(x_13, 0);
 x_80 = x_13;
} else {
 lean_dec_ref(x_13);
 x_80 = lean_box(0);
}
x_81 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonRange____x40_Lean_Data_Lsp_Basic___hyg_738_(x_79);
if (lean_is_scalar(x_80)) {
 x_82 = lean_alloc_ctor(1, 1, 0);
} else {
 x_82 = x_80;
}
lean_ctor_set(x_82, 0, x_81);
x_83 = lean_ctor_get(x_1, 2);
lean_inc(x_83);
lean_dec(x_1);
if (lean_obj_tag(x_83) == 0)
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_84 = lean_box(0);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_7);
lean_ctor_set(x_85, 1, x_10);
lean_ctor_set(x_85, 2, x_77);
lean_ctor_set(x_85, 3, x_82);
lean_ctor_set(x_85, 4, x_84);
x_86 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_85);
lean_dec(x_85);
x_87 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_87, 0, x_86);
lean_ctor_set(x_87, 1, x_78);
return x_87;
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_88 = lean_ctor_get(x_83, 0);
lean_inc(x_88);
if (lean_is_exclusive(x_83)) {
 lean_ctor_release(x_83, 0);
 x_89 = x_83;
} else {
 lean_dec_ref(x_83);
 x_89 = lean_box(0);
}
x_90 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_90, 0, x_88);
if (lean_is_scalar(x_89)) {
 x_91 = lean_alloc_ctor(1, 1, 0);
} else {
 x_91 = x_89;
}
lean_ctor_set(x_91, 0, x_90);
x_92 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_92, 0, x_7);
lean_ctor_set(x_92, 1, x_10);
lean_ctor_set(x_92, 2, x_77);
lean_ctor_set(x_92, 3, x_82);
lean_ctor_set(x_92, 4, x_91);
x_93 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4571_(x_92);
lean_dec(x_92);
x_94 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_78);
return x_94;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_uint64_of_nat(x_1);
x_4 = lean_box_uint64(x_3);
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_cstr_to_nat("18446744073709551616");
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("value '{j}' is too large for `UInt64`", 37, 37);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[anonymous]", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected a `Name`, got '", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152_(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_133; lean_object* x_134; 
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232_(x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec(x_3);
x_133 = lean_ctor_get(x_4, 0);
lean_inc(x_133);
lean_inc(x_133);
x_134 = l_Lean_Json_getStr_x3f(x_133);
if (lean_obj_tag(x_134) == 0)
{
uint8_t x_135; 
lean_dec(x_133);
x_135 = !lean_is_exclusive(x_134);
if (x_135 == 0)
{
lean_object* x_136; 
x_136 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_134, x_2);
if (lean_obj_tag(x_136) == 0)
{
uint8_t x_137; 
lean_dec(x_4);
x_137 = !lean_is_exclusive(x_136);
if (x_137 == 0)
{
return x_136;
}
else
{
lean_object* x_138; lean_object* x_139; 
x_138 = lean_ctor_get(x_136, 0);
lean_inc(x_138);
lean_dec(x_136);
x_139 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_139, 0, x_138);
return x_139;
}
}
else
{
lean_object* x_140; 
x_140 = lean_ctor_get(x_136, 0);
lean_inc(x_140);
lean_dec(x_136);
x_5 = x_140;
goto block_132;
}
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = lean_ctor_get(x_134, 0);
lean_inc(x_141);
lean_dec(x_134);
x_142 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_142, 0, x_141);
x_143 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_142, x_2);
if (lean_obj_tag(x_143) == 0)
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; 
lean_dec(x_4);
x_144 = lean_ctor_get(x_143, 0);
lean_inc(x_144);
if (lean_is_exclusive(x_143)) {
 lean_ctor_release(x_143, 0);
 x_145 = x_143;
} else {
 lean_dec_ref(x_143);
 x_145 = lean_box(0);
}
if (lean_is_scalar(x_145)) {
 x_146 = lean_alloc_ctor(0, 1, 0);
} else {
 x_146 = x_145;
}
lean_ctor_set(x_146, 0, x_144);
return x_146;
}
else
{
lean_object* x_147; 
x_147 = lean_ctor_get(x_143, 0);
lean_inc(x_147);
lean_dec(x_143);
x_5 = x_147;
goto block_132;
}
}
}
else
{
uint8_t x_148; 
x_148 = !lean_is_exclusive(x_134);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; uint8_t x_151; 
x_149 = lean_ctor_get(x_134, 0);
x_150 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4;
x_151 = lean_string_dec_eq(x_149, x_150);
if (x_151 == 0)
{
lean_object* x_152; uint8_t x_153; 
x_152 = l_String_toName(x_149);
x_153 = l_Lean_Name_isAnonymous(x_152);
if (x_153 == 0)
{
lean_object* x_154; 
lean_dec(x_133);
lean_ctor_set(x_134, 0, x_152);
x_154 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_134, x_2);
if (lean_obj_tag(x_154) == 0)
{
uint8_t x_155; 
lean_dec(x_4);
x_155 = !lean_is_exclusive(x_154);
if (x_155 == 0)
{
return x_154;
}
else
{
lean_object* x_156; lean_object* x_157; 
x_156 = lean_ctor_get(x_154, 0);
lean_inc(x_156);
lean_dec(x_154);
x_157 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_157, 0, x_156);
return x_157;
}
}
else
{
lean_object* x_158; 
x_158 = lean_ctor_get(x_154, 0);
lean_inc(x_158);
lean_dec(x_154);
x_5 = x_158;
goto block_132;
}
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
lean_dec(x_152);
x_159 = lean_unsigned_to_nat(80u);
x_160 = l_Lean_Json_pretty(x_133, x_159);
x_161 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5;
x_162 = lean_string_append(x_161, x_160);
lean_dec(x_160);
x_163 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_164 = lean_string_append(x_162, x_163);
lean_ctor_set_tag(x_134, 0);
lean_ctor_set(x_134, 0, x_164);
x_165 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_134, x_2);
if (lean_obj_tag(x_165) == 0)
{
uint8_t x_166; 
lean_dec(x_4);
x_166 = !lean_is_exclusive(x_165);
if (x_166 == 0)
{
return x_165;
}
else
{
lean_object* x_167; lean_object* x_168; 
x_167 = lean_ctor_get(x_165, 0);
lean_inc(x_167);
lean_dec(x_165);
x_168 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_168, 0, x_167);
return x_168;
}
}
else
{
lean_object* x_169; 
x_169 = lean_ctor_get(x_165, 0);
lean_inc(x_169);
lean_dec(x_165);
x_5 = x_169;
goto block_132;
}
}
}
else
{
lean_object* x_170; lean_object* x_171; 
lean_free_object(x_134);
lean_dec(x_149);
lean_dec(x_133);
x_170 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6;
x_171 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_170, x_2);
if (lean_obj_tag(x_171) == 0)
{
uint8_t x_172; 
lean_dec(x_4);
x_172 = !lean_is_exclusive(x_171);
if (x_172 == 0)
{
return x_171;
}
else
{
lean_object* x_173; lean_object* x_174; 
x_173 = lean_ctor_get(x_171, 0);
lean_inc(x_173);
lean_dec(x_171);
x_174 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_174, 0, x_173);
return x_174;
}
}
else
{
lean_object* x_175; 
x_175 = lean_ctor_get(x_171, 0);
lean_inc(x_175);
lean_dec(x_171);
x_5 = x_175;
goto block_132;
}
}
}
else
{
lean_object* x_176; lean_object* x_177; uint8_t x_178; 
x_176 = lean_ctor_get(x_134, 0);
lean_inc(x_176);
lean_dec(x_134);
x_177 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4;
x_178 = lean_string_dec_eq(x_176, x_177);
if (x_178 == 0)
{
lean_object* x_179; uint8_t x_180; 
x_179 = l_String_toName(x_176);
x_180 = l_Lean_Name_isAnonymous(x_179);
if (x_180 == 0)
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_133);
x_181 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_181, 0, x_179);
x_182 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_181, x_2);
if (lean_obj_tag(x_182) == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; 
lean_dec(x_4);
x_183 = lean_ctor_get(x_182, 0);
lean_inc(x_183);
if (lean_is_exclusive(x_182)) {
 lean_ctor_release(x_182, 0);
 x_184 = x_182;
} else {
 lean_dec_ref(x_182);
 x_184 = lean_box(0);
}
if (lean_is_scalar(x_184)) {
 x_185 = lean_alloc_ctor(0, 1, 0);
} else {
 x_185 = x_184;
}
lean_ctor_set(x_185, 0, x_183);
return x_185;
}
else
{
lean_object* x_186; 
x_186 = lean_ctor_get(x_182, 0);
lean_inc(x_186);
lean_dec(x_182);
x_5 = x_186;
goto block_132;
}
}
else
{
lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; 
lean_dec(x_179);
x_187 = lean_unsigned_to_nat(80u);
x_188 = l_Lean_Json_pretty(x_133, x_187);
x_189 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5;
x_190 = lean_string_append(x_189, x_188);
lean_dec(x_188);
x_191 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_192 = lean_string_append(x_190, x_191);
x_193 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_193, 0, x_192);
x_194 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_193, x_2);
if (lean_obj_tag(x_194) == 0)
{
lean_object* x_195; lean_object* x_196; lean_object* x_197; 
lean_dec(x_4);
x_195 = lean_ctor_get(x_194, 0);
lean_inc(x_195);
if (lean_is_exclusive(x_194)) {
 lean_ctor_release(x_194, 0);
 x_196 = x_194;
} else {
 lean_dec_ref(x_194);
 x_196 = lean_box(0);
}
if (lean_is_scalar(x_196)) {
 x_197 = lean_alloc_ctor(0, 1, 0);
} else {
 x_197 = x_196;
}
lean_ctor_set(x_197, 0, x_195);
return x_197;
}
else
{
lean_object* x_198; 
x_198 = lean_ctor_get(x_194, 0);
lean_inc(x_198);
lean_dec(x_194);
x_5 = x_198;
goto block_132;
}
}
}
else
{
lean_object* x_199; lean_object* x_200; 
lean_dec(x_176);
lean_dec(x_133);
x_199 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6;
x_200 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__3(x_199, x_2);
if (lean_obj_tag(x_200) == 0)
{
lean_object* x_201; lean_object* x_202; lean_object* x_203; 
lean_dec(x_4);
x_201 = lean_ctor_get(x_200, 0);
lean_inc(x_201);
if (lean_is_exclusive(x_200)) {
 lean_ctor_release(x_200, 0);
 x_202 = x_200;
} else {
 lean_dec_ref(x_200);
 x_202 = lean_box(0);
}
if (lean_is_scalar(x_202)) {
 x_203 = lean_alloc_ctor(0, 1, 0);
} else {
 x_203 = x_202;
}
lean_ctor_set(x_203, 0, x_201);
return x_203;
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_200, 0);
lean_inc(x_204);
lean_dec(x_200);
x_5 = x_204;
goto block_132;
}
}
}
}
block_132:
{
lean_object* x_6; lean_object* x_7; lean_object* x_122; 
x_6 = lean_ctor_get(x_4, 1);
lean_inc(x_6);
x_122 = l_Lean_bignumFromJson_x3f(x_6);
if (lean_obj_tag(x_122) == 0)
{
uint8_t x_123; 
x_123 = !lean_is_exclusive(x_122);
if (x_123 == 0)
{
x_7 = x_122;
goto block_121;
}
else
{
lean_object* x_124; lean_object* x_125; 
x_124 = lean_ctor_get(x_122, 0);
lean_inc(x_124);
lean_dec(x_122);
x_125 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_125, 0, x_124);
x_7 = x_125;
goto block_121;
}
}
else
{
lean_object* x_126; lean_object* x_127; uint8_t x_128; 
x_126 = lean_ctor_get(x_122, 0);
lean_inc(x_126);
lean_dec(x_122);
x_127 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1;
x_128 = lean_nat_dec_le(x_127, x_126);
if (x_128 == 0)
{
lean_object* x_129; lean_object* x_130; 
x_129 = lean_box(0);
x_130 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1(x_126, x_129);
lean_dec(x_126);
x_7 = x_130;
goto block_121;
}
else
{
lean_object* x_131; 
lean_dec(x_126);
x_131 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3;
x_7 = x_131;
goto block_121;
}
}
block_121:
{
lean_object* x_8; 
x_8 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__1(x_7, x_2);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
lean_dec(x_5);
lean_dec(x_4);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
return x_8;
}
else
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_10);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_8);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_8, 0);
x_14 = lean_ctor_get(x_4, 2);
lean_inc(x_14);
lean_ctor_set(x_8, 0, x_14);
x_15 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__2(x_8, x_2);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
lean_dec(x_13);
lean_dec(x_5);
lean_dec(x_4);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
return x_15;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_60; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
if (lean_is_exclusive(x_15)) {
 lean_ctor_release(x_15, 0);
 x_20 = x_15;
} else {
 lean_dec_ref(x_15);
 x_20 = lean_box(0);
}
x_21 = lean_alloc_closure((void*)(l_StateT_pure___at_Lean_Server_instRpcEncodableStateMRpcObjectStore___spec__1___rarg), 2, 1);
lean_closure_set(x_21, 0, x_19);
x_60 = lean_ctor_get(x_4, 3);
lean_inc(x_60);
if (lean_obj_tag(x_60) == 0)
{
lean_object* x_61; 
x_61 = lean_box(0);
x_22 = x_61;
goto block_59;
}
else
{
uint8_t x_62; 
x_62 = !lean_is_exclusive(x_60);
if (x_62 == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_63 = lean_ctor_get(x_60, 0);
x_64 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786_(x_63);
x_65 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodableInteractiveTermGoal_dec____x40_Lean_Widget_InteractiveGoal___hyg_2335____spec__1(x_64, x_2);
if (lean_obj_tag(x_65) == 0)
{
uint8_t x_66; 
lean_free_object(x_60);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_13);
lean_dec(x_5);
lean_dec(x_4);
x_66 = !lean_is_exclusive(x_65);
if (x_66 == 0)
{
return x_65;
}
else
{
lean_object* x_67; lean_object* x_68; 
x_67 = lean_ctor_get(x_65, 0);
lean_inc(x_67);
lean_dec(x_65);
x_68 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_68, 0, x_67);
return x_68;
}
}
else
{
lean_object* x_69; 
x_69 = lean_ctor_get(x_65, 0);
lean_inc(x_69);
lean_dec(x_65);
lean_ctor_set(x_60, 0, x_69);
x_22 = x_60;
goto block_59;
}
}
else
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_70 = lean_ctor_get(x_60, 0);
lean_inc(x_70);
lean_dec(x_60);
x_71 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786_(x_70);
x_72 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodableInteractiveTermGoal_dec____x40_Lean_Widget_InteractiveGoal___hyg_2335____spec__1(x_71, x_2);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_13);
lean_dec(x_5);
lean_dec(x_4);
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
if (lean_is_exclusive(x_72)) {
 lean_ctor_release(x_72, 0);
 x_74 = x_72;
} else {
 lean_dec_ref(x_72);
 x_74 = lean_box(0);
}
if (lean_is_scalar(x_74)) {
 x_75 = lean_alloc_ctor(0, 1, 0);
} else {
 x_75 = x_74;
}
lean_ctor_set(x_75, 0, x_73);
return x_75;
}
else
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_72, 0);
lean_inc(x_76);
lean_dec(x_72);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_76);
x_22 = x_77;
goto block_59;
}
}
}
block_59:
{
lean_object* x_23; 
x_23 = lean_ctor_get(x_4, 4);
lean_inc(x_23);
lean_dec(x_4);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; 
x_24 = lean_box(0);
x_25 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_25, 0, x_5);
lean_ctor_set(x_25, 1, x_21);
x_26 = lean_unbox_uint64(x_13);
lean_dec(x_13);
lean_ctor_set_uint64(x_25, sizeof(void*)*2, x_26);
x_27 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_22);
lean_ctor_set(x_27, 2, x_24);
if (lean_is_scalar(x_20)) {
 x_28 = lean_alloc_ctor(1, 1, 0);
} else {
 x_28 = x_20;
}
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
else
{
uint8_t x_29; 
lean_dec(x_20);
x_29 = !lean_is_exclusive(x_23);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_23, 0);
x_31 = l_Lean_Json_getStr_x3f(x_30);
x_32 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveHypothesisBundle_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5____spec__1(x_31, x_2);
if (lean_obj_tag(x_32) == 0)
{
uint8_t x_33; 
lean_free_object(x_23);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_13);
lean_dec(x_5);
x_33 = !lean_is_exclusive(x_32);
if (x_33 == 0)
{
return x_32;
}
else
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_32, 0);
lean_inc(x_34);
lean_dec(x_32);
x_35 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
else
{
uint8_t x_36; 
x_36 = !lean_is_exclusive(x_32);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; uint64_t x_39; lean_object* x_40; 
x_37 = lean_ctor_get(x_32, 0);
lean_ctor_set(x_23, 0, x_37);
x_38 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_38, 0, x_5);
lean_ctor_set(x_38, 1, x_21);
x_39 = lean_unbox_uint64(x_13);
lean_dec(x_13);
lean_ctor_set_uint64(x_38, sizeof(void*)*2, x_39);
x_40 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_22);
lean_ctor_set(x_40, 2, x_23);
lean_ctor_set(x_32, 0, x_40);
return x_32;
}
else
{
lean_object* x_41; lean_object* x_42; uint64_t x_43; lean_object* x_44; lean_object* x_45; 
x_41 = lean_ctor_get(x_32, 0);
lean_inc(x_41);
lean_dec(x_32);
lean_ctor_set(x_23, 0, x_41);
x_42 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_42, 0, x_5);
lean_ctor_set(x_42, 1, x_21);
x_43 = lean_unbox_uint64(x_13);
lean_dec(x_13);
lean_ctor_set_uint64(x_42, sizeof(void*)*2, x_43);
x_44 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_22);
lean_ctor_set(x_44, 2, x_23);
x_45 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_45, 0, x_44);
return x_45;
}
}
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_23, 0);
lean_inc(x_46);
lean_dec(x_23);
x_47 = l_Lean_Json_getStr_x3f(x_46);
x_48 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveHypothesisBundle_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5____spec__1(x_47, x_2);
if (lean_obj_tag(x_48) == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_13);
lean_dec(x_5);
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 x_50 = x_48;
} else {
 lean_dec_ref(x_48);
 x_50 = lean_box(0);
}
if (lean_is_scalar(x_50)) {
 x_51 = lean_alloc_ctor(0, 1, 0);
} else {
 x_51 = x_50;
}
lean_ctor_set(x_51, 0, x_49);
return x_51;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint64_t x_56; lean_object* x_57; lean_object* x_58; 
x_52 = lean_ctor_get(x_48, 0);
lean_inc(x_52);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 x_53 = x_48;
} else {
 lean_dec_ref(x_48);
 x_53 = lean_box(0);
}
x_54 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_54, 0, x_52);
x_55 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_55, 0, x_5);
lean_ctor_set(x_55, 1, x_21);
x_56 = lean_unbox_uint64(x_13);
lean_dec(x_13);
lean_ctor_set_uint64(x_55, sizeof(void*)*2, x_56);
x_57 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_57, 0, x_55);
lean_ctor_set(x_57, 1, x_22);
lean_ctor_set(x_57, 2, x_54);
if (lean_is_scalar(x_53)) {
 x_58 = lean_alloc_ctor(1, 1, 0);
} else {
 x_58 = x_53;
}
lean_ctor_set(x_58, 0, x_57);
return x_58;
}
}
}
}
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_78 = lean_ctor_get(x_8, 0);
lean_inc(x_78);
lean_dec(x_8);
x_79 = lean_ctor_get(x_4, 2);
lean_inc(x_79);
x_80 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_80, 0, x_79);
x_81 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_WidgetInstance_instRpcEncodableWidgetInstance_dec____x40_Lean_Widget_Types___hyg_3____spec__2(x_80, x_2);
if (lean_obj_tag(x_81) == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; 
lean_dec(x_78);
lean_dec(x_5);
lean_dec(x_4);
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
if (lean_is_exclusive(x_81)) {
 lean_ctor_release(x_81, 0);
 x_83 = x_81;
} else {
 lean_dec_ref(x_81);
 x_83 = lean_box(0);
}
if (lean_is_scalar(x_83)) {
 x_84 = lean_alloc_ctor(0, 1, 0);
} else {
 x_84 = x_83;
}
lean_ctor_set(x_84, 0, x_82);
return x_84;
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_110; 
x_85 = lean_ctor_get(x_81, 0);
lean_inc(x_85);
if (lean_is_exclusive(x_81)) {
 lean_ctor_release(x_81, 0);
 x_86 = x_81;
} else {
 lean_dec_ref(x_81);
 x_86 = lean_box(0);
}
x_87 = lean_alloc_closure((void*)(l_StateT_pure___at_Lean_Server_instRpcEncodableStateMRpcObjectStore___spec__1___rarg), 2, 1);
lean_closure_set(x_87, 0, x_85);
x_110 = lean_ctor_get(x_4, 3);
lean_inc(x_110);
if (lean_obj_tag(x_110) == 0)
{
lean_object* x_111; 
x_111 = lean_box(0);
x_88 = x_111;
goto block_109;
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_ctor_get(x_110, 0);
lean_inc(x_112);
if (lean_is_exclusive(x_110)) {
 lean_ctor_release(x_110, 0);
 x_113 = x_110;
} else {
 lean_dec_ref(x_110);
 x_113 = lean_box(0);
}
x_114 = l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonRange____x40_Lean_Data_Lsp_Basic___hyg_786_(x_112);
x_115 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveTermGoal_instRpcEncodableInteractiveTermGoal_dec____x40_Lean_Widget_InteractiveGoal___hyg_2335____spec__1(x_114, x_2);
if (lean_obj_tag(x_115) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
lean_dec(x_113);
lean_dec(x_87);
lean_dec(x_86);
lean_dec(x_78);
lean_dec(x_5);
lean_dec(x_4);
x_116 = lean_ctor_get(x_115, 0);
lean_inc(x_116);
if (lean_is_exclusive(x_115)) {
 lean_ctor_release(x_115, 0);
 x_117 = x_115;
} else {
 lean_dec_ref(x_115);
 x_117 = lean_box(0);
}
if (lean_is_scalar(x_117)) {
 x_118 = lean_alloc_ctor(0, 1, 0);
} else {
 x_118 = x_117;
}
lean_ctor_set(x_118, 0, x_116);
return x_118;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_ctor_get(x_115, 0);
lean_inc(x_119);
lean_dec(x_115);
if (lean_is_scalar(x_113)) {
 x_120 = lean_alloc_ctor(1, 1, 0);
} else {
 x_120 = x_113;
}
lean_ctor_set(x_120, 0, x_119);
x_88 = x_120;
goto block_109;
}
}
block_109:
{
lean_object* x_89; 
x_89 = lean_ctor_get(x_4, 4);
lean_inc(x_89);
lean_dec(x_4);
if (lean_obj_tag(x_89) == 0)
{
lean_object* x_90; lean_object* x_91; uint64_t x_92; lean_object* x_93; lean_object* x_94; 
x_90 = lean_box(0);
x_91 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_91, 0, x_5);
lean_ctor_set(x_91, 1, x_87);
x_92 = lean_unbox_uint64(x_78);
lean_dec(x_78);
lean_ctor_set_uint64(x_91, sizeof(void*)*2, x_92);
x_93 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_93, 0, x_91);
lean_ctor_set(x_93, 1, x_88);
lean_ctor_set(x_93, 2, x_90);
if (lean_is_scalar(x_86)) {
 x_94 = lean_alloc_ctor(1, 1, 0);
} else {
 x_94 = x_86;
}
lean_ctor_set(x_94, 0, x_93);
return x_94;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
lean_dec(x_86);
x_95 = lean_ctor_get(x_89, 0);
lean_inc(x_95);
if (lean_is_exclusive(x_89)) {
 lean_ctor_release(x_89, 0);
 x_96 = x_89;
} else {
 lean_dec_ref(x_89);
 x_96 = lean_box(0);
}
x_97 = l_Lean_Json_getStr_x3f(x_95);
x_98 = l_MonadExcept_ofExcept___at_Lean_Widget_Lean_Widget_InteractiveHypothesisBundle_instRpcEncodableInteractiveHypothesisBundle_dec____x40_Lean_Widget_InteractiveGoal___hyg_5____spec__1(x_97, x_2);
if (lean_obj_tag(x_98) == 0)
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_96);
lean_dec(x_88);
lean_dec(x_87);
lean_dec(x_78);
lean_dec(x_5);
x_99 = lean_ctor_get(x_98, 0);
lean_inc(x_99);
if (lean_is_exclusive(x_98)) {
 lean_ctor_release(x_98, 0);
 x_100 = x_98;
} else {
 lean_dec_ref(x_98);
 x_100 = lean_box(0);
}
if (lean_is_scalar(x_100)) {
 x_101 = lean_alloc_ctor(0, 1, 0);
} else {
 x_101 = x_100;
}
lean_ctor_set(x_101, 0, x_99);
return x_101;
}
else
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint64_t x_106; lean_object* x_107; lean_object* x_108; 
x_102 = lean_ctor_get(x_98, 0);
lean_inc(x_102);
if (lean_is_exclusive(x_98)) {
 lean_ctor_release(x_98, 0);
 x_103 = x_98;
} else {
 lean_dec_ref(x_98);
 x_103 = lean_box(0);
}
if (lean_is_scalar(x_96)) {
 x_104 = lean_alloc_ctor(1, 1, 0);
} else {
 x_104 = x_96;
}
lean_ctor_set(x_104, 0, x_102);
x_105 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_105, 0, x_5);
lean_ctor_set(x_105, 1, x_87);
x_106 = lean_unbox_uint64(x_78);
lean_dec(x_78);
lean_ctor_set_uint64(x_105, sizeof(void*)*2, x_106);
x_107 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_107, 0, x_105);
lean_ctor_set(x_107, 1, x_88);
lean_ctor_set(x_107, 2, x_104);
if (lean_is_scalar(x_103)) {
 x_108 = lean_alloc_ctor(1, 1, 0);
} else {
 x_108 = x_103;
}
lean_ctor_set(x_108, 0, x_107);
return x_108;
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__1(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____lambda__2(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152_(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_enc____x40_Lean_Widget_UserWidget___hyg_4152_), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1;
x_2 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("widgets", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("GetWidgetsResponse", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9;
x_2 = lean_unsigned_to_nat(4900u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11;
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13;
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8;
x_3 = lean_string_append(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1;
x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonRpcCallParams____x40_Lean_Data_Lsp_Extra___hyg_1927____spec__2(x_1, x_2);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_5014_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
x_7 = l_List_join___rarg(x_6);
x_8 = l_Lean_Json_mkObj(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_5014_), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_2, x_1);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_6, 1, x_4);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; 
x_7 = lean_array_uget(x_3, x_2);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_array_uset(x_3, x_2, x_8);
x_10 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_enc____x40_Lean_Widget_UserWidget___hyg_4152_(x_7, x_4);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = 1;
x_14 = lean_usize_add(x_2, x_13);
x_15 = lean_array_uset(x_9, x_2, x_11);
x_2 = x_14;
x_3 = x_15;
x_4 = x_12;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900_(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; uint8_t x_7; 
x_3 = lean_array_get_size(x_1);
x_4 = lean_usize_of_nat(x_3);
lean_dec(x_3);
x_5 = 0;
x_6 = l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(x_4, x_5, x_1, x_2);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_array_get_size(x_8);
x_10 = lean_usize_of_nat(x_9);
lean_dec(x_9);
x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1606____spec__2(x_10, x_5, x_8);
x_12 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_5014_(x_12);
lean_ctor_set(x_6, 0, x_13);
return x_6;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_6, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_6);
x_16 = lean_array_get_size(x_14);
x_17 = lean_usize_of_nat(x_16);
lean_dec(x_16);
x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1606____spec__2(x_17, x_5, x_14);
x_19 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_19, 0, x_18);
x_20 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_toJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_5014_(x_19);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_15);
return x_21;
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_6 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(x_5, x_6, x_3, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_2, x_1);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_3);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_array_uget(x_3, x_2);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_array_uset(x_3, x_2, x_8);
x_10 = l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152_(x_7, x_4);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
lean_dec(x_9);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
return x_10;
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
else
{
lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
lean_dec(x_10);
x_15 = 1;
x_16 = lean_usize_add(x_2, x_15);
x_17 = lean_array_uset(x_9, x_2, x_14);
x_2 = x_16;
x_3 = x_17;
goto _start;
}
}
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expected JSON array, got '", 26, 26);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900_(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927_(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_5) == 4)
{
lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; lean_object* x_14; 
lean_free_object(x_3);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
x_7 = lean_array_get_size(x_6);
x_8 = lean_usize_of_nat(x_7);
lean_dec(x_7);
x_9 = 0;
x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1661____spec__2(x_8, x_9, x_6);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_array_get_size(x_11);
x_13 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_14 = l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(x_13, x_9, x_11, x_2);
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
return x_14;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
else
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_14);
if (x_18 == 0)
{
return x_14;
}
else
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_14, 0);
lean_inc(x_19);
lean_dec(x_14);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_19);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_21 = lean_unsigned_to_nat(80u);
x_22 = l_Lean_Json_pretty(x_5, x_21);
x_23 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_26 = lean_string_append(x_24, x_25);
lean_ctor_set_tag(x_3, 0);
lean_ctor_set(x_3, 0, x_26);
return x_3;
}
}
else
{
lean_object* x_27; 
x_27 = lean_ctor_get(x_3, 0);
lean_inc(x_27);
lean_dec(x_3);
if (lean_obj_tag(x_27) == 4)
{
lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; lean_object* x_36; 
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_array_get_size(x_28);
x_30 = lean_usize_of_nat(x_29);
lean_dec(x_29);
x_31 = 0;
x_32 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonCommand____x40_Lean_Data_Lsp_Basic___hyg_1661____spec__2(x_30, x_31, x_28);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec(x_32);
x_34 = lean_array_get_size(x_33);
x_35 = lean_usize_of_nat(x_34);
lean_dec(x_34);
x_36 = l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(x_35, x_31, x_33, x_2);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = lean_ctor_get(x_36, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 x_38 = x_36;
} else {
 lean_dec_ref(x_36);
 x_38 = lean_box(0);
}
if (lean_is_scalar(x_38)) {
 x_39 = lean_alloc_ctor(0, 1, 0);
} else {
 x_39 = x_38;
}
lean_ctor_set(x_39, 0, x_37);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_36, 0);
lean_inc(x_40);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 x_41 = x_36;
} else {
 lean_dec_ref(x_36);
 x_41 = lean_box(0);
}
if (lean_is_scalar(x_41)) {
 x_42 = lean_alloc_ctor(1, 1, 0);
} else {
 x_42 = x_41;
}
lean_ctor_set(x_42, 0, x_40);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_43 = lean_unsigned_to_nat(80u);
x_44 = l_Lean_Json_pretty(x_27, x_43);
x_45 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1;
x_46 = lean_string_append(x_45, x_44);
lean_dec(x_44);
x_47 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_48 = lean_string_append(x_46, x_47);
x_49 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_49, 0, x_48);
return x_49;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_6 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____spec__1(x_5, x_6, x_3, x_4);
lean_dec(x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900_(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_enc____x40_Lean_Widget_UserWidget___hyg_4900_), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1;
x_2 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_7, 5);
x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_5, x_6, x_7, x_8, x_9);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_10);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_10);
lean_ctor_set(x_14, 1, x_13);
lean_ctor_set_tag(x_11, 1);
lean_ctor_set(x_11, 0, x_14);
return x_11;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_11, 0);
x_16 = lean_ctor_get(x_11, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_11);
lean_inc(x_10);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_10);
lean_ctor_set(x_17, 1, x_15);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
lean_dec(x_1);
x_11 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = l_Lean_MessageData_ofFormat(x_11);
x_13 = l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_13;
}
else
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_1);
if (x_14 == 0)
{
lean_object* x_15; 
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_1);
lean_ctor_set(x_15, 1, x_9);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_1, 0);
lean_inc(x_16);
lean_dec(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_9);
return x_18;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_10 = lean_st_ref_get(x_8, x_9);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_13);
lean_dec(x_11);
x_14 = lean_ctor_get(x_7, 2);
x_15 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_16 = l_Lean_Environment_evalConstCheck___rarg(x_13, x_14, x_15, x_1);
x_17 = l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
return x_17;
}
}
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
uint8_t x_13; 
x_13 = lean_usize_dec_lt(x_3, x_2);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_1);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_12);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_29; lean_object* x_30; 
x_16 = lean_array_uget(x_4, x_3);
x_17 = lean_unsigned_to_nat(0u);
x_18 = lean_array_uset(x_4, x_3, x_17);
x_29 = lean_ctor_get(x_16, 0);
lean_inc(x_29);
lean_inc(x_29);
lean_inc(x_1);
x_30 = lean_environment_find(x_1, x_29);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; 
lean_dec(x_29);
x_31 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_19 = x_31;
x_20 = x_12;
goto block_28;
}
else
{
uint8_t x_32; 
x_32 = !lean_is_exclusive(x_30);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; 
x_33 = lean_ctor_get(x_30, 0);
x_34 = l_Lean_ConstantInfo_type(x_33);
lean_dec(x_33);
x_35 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_36 = l_Lean_Expr_isConstOf(x_34, x_35);
lean_dec(x_34);
if (x_36 == 0)
{
lean_object* x_37; 
lean_free_object(x_30);
lean_dec(x_29);
x_37 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_19 = x_37;
x_20 = x_12;
goto block_28;
}
else
{
lean_object* x_38; 
x_38 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; uint8_t x_40; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_41 = lean_ctor_get(x_39, 0);
x_42 = lean_ctor_get(x_38, 1);
lean_inc(x_42);
lean_dec(x_38);
x_43 = lean_ctor_get(x_41, 0);
lean_inc(x_43);
lean_dec(x_41);
lean_ctor_set(x_30, 0, x_43);
lean_ctor_set(x_39, 0, x_30);
x_19 = x_39;
x_20 = x_42;
goto block_28;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_44 = lean_ctor_get(x_39, 0);
lean_inc(x_44);
lean_dec(x_39);
x_45 = lean_ctor_get(x_38, 1);
lean_inc(x_45);
lean_dec(x_38);
x_46 = lean_ctor_get(x_44, 0);
lean_inc(x_46);
lean_dec(x_44);
lean_ctor_set(x_30, 0, x_46);
x_47 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_47, 0, x_30);
x_19 = x_47;
x_20 = x_45;
goto block_28;
}
}
else
{
uint8_t x_48; 
lean_free_object(x_30);
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_1);
x_48 = !lean_is_exclusive(x_38);
if (x_48 == 0)
{
return x_38;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_49 = lean_ctor_get(x_38, 0);
x_50 = lean_ctor_get(x_38, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_38);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_50);
return x_51;
}
}
}
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_52 = lean_ctor_get(x_30, 0);
lean_inc(x_52);
lean_dec(x_30);
x_53 = l_Lean_ConstantInfo_type(x_52);
lean_dec(x_52);
x_54 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_55 = l_Lean_Expr_isConstOf(x_53, x_54);
lean_dec(x_53);
if (x_55 == 0)
{
lean_object* x_56; 
lean_dec(x_29);
x_56 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_19 = x_56;
x_20 = x_12;
goto block_28;
}
else
{
lean_object* x_57; 
x_57 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_58 = lean_ctor_get(x_57, 0);
lean_inc(x_58);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
if (lean_is_exclusive(x_58)) {
 lean_ctor_release(x_58, 0);
 x_60 = x_58;
} else {
 lean_dec_ref(x_58);
 x_60 = lean_box(0);
}
x_61 = lean_ctor_get(x_57, 1);
lean_inc(x_61);
lean_dec(x_57);
x_62 = lean_ctor_get(x_59, 0);
lean_inc(x_62);
lean_dec(x_59);
x_63 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_63, 0, x_62);
if (lean_is_scalar(x_60)) {
 x_64 = lean_alloc_ctor(1, 1, 0);
} else {
 x_64 = x_60;
}
lean_ctor_set(x_64, 0, x_63);
x_19 = x_64;
x_20 = x_61;
goto block_28;
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_1);
x_65 = lean_ctor_get(x_57, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_57, 1);
lean_inc(x_66);
if (lean_is_exclusive(x_57)) {
 lean_ctor_release(x_57, 0);
 lean_ctor_release(x_57, 1);
 x_67 = x_57;
} else {
 lean_dec_ref(x_57);
 x_67 = lean_box(0);
}
if (lean_is_scalar(x_67)) {
 x_68 = lean_alloc_ctor(1, 2, 0);
} else {
 x_68 = x_67;
}
lean_ctor_set(x_68, 0, x_65);
lean_ctor_set(x_68, 1, x_66);
return x_68;
}
}
}
}
block_28:
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; 
x_21 = lean_ctor_get(x_19, 0);
lean_inc(x_21);
lean_dec(x_19);
x_22 = lean_box(0);
x_23 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_23, 0, x_16);
lean_ctor_set(x_23, 1, x_22);
lean_ctor_set(x_23, 2, x_21);
x_24 = 1;
x_25 = lean_usize_add(x_3, x_24);
x_26 = lean_array_uset(x_18, x_3, x_23);
x_3 = x_25;
x_4 = x_26;
x_12 = x_20;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
uint8_t x_14; 
x_14 = lean_usize_dec_lt(x_4, x_3);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_2);
lean_dec(x_1);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_5);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_13);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_60; lean_object* x_61; 
x_17 = lean_array_uget(x_5, x_4);
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_array_uset(x_5, x_4, x_18);
x_28 = lean_ctor_get(x_17, 0);
lean_inc(x_28);
x_60 = lean_ctor_get(x_28, 0);
lean_inc(x_60);
lean_inc(x_60);
lean_inc(x_2);
x_61 = lean_environment_find(x_2, x_60);
if (lean_obj_tag(x_61) == 0)
{
lean_object* x_62; 
lean_dec(x_60);
x_62 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_29 = x_62;
x_30 = x_13;
goto block_59;
}
else
{
uint8_t x_63; 
x_63 = !lean_is_exclusive(x_61);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; 
x_64 = lean_ctor_get(x_61, 0);
x_65 = l_Lean_ConstantInfo_type(x_64);
lean_dec(x_64);
x_66 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_67 = l_Lean_Expr_isConstOf(x_65, x_66);
lean_dec(x_65);
if (x_67 == 0)
{
lean_object* x_68; 
lean_free_object(x_61);
lean_dec(x_60);
x_68 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_29 = x_68;
x_30 = x_13;
goto block_59;
}
else
{
lean_object* x_69; 
x_69 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_60, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_69) == 0)
{
lean_object* x_70; uint8_t x_71; 
x_70 = lean_ctor_get(x_69, 0);
lean_inc(x_70);
x_71 = !lean_is_exclusive(x_70);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_70, 0);
x_73 = lean_ctor_get(x_69, 1);
lean_inc(x_73);
lean_dec(x_69);
x_74 = lean_ctor_get(x_72, 0);
lean_inc(x_74);
lean_dec(x_72);
lean_ctor_set(x_61, 0, x_74);
lean_ctor_set(x_70, 0, x_61);
x_29 = x_70;
x_30 = x_73;
goto block_59;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_75 = lean_ctor_get(x_70, 0);
lean_inc(x_75);
lean_dec(x_70);
x_76 = lean_ctor_get(x_69, 1);
lean_inc(x_76);
lean_dec(x_69);
x_77 = lean_ctor_get(x_75, 0);
lean_inc(x_77);
lean_dec(x_75);
lean_ctor_set(x_61, 0, x_77);
x_78 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_78, 0, x_61);
x_29 = x_78;
x_30 = x_76;
goto block_59;
}
}
else
{
uint8_t x_79; 
lean_free_object(x_61);
lean_dec(x_28);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_2);
lean_dec(x_1);
x_79 = !lean_is_exclusive(x_69);
if (x_79 == 0)
{
return x_69;
}
else
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_80 = lean_ctor_get(x_69, 0);
x_81 = lean_ctor_get(x_69, 1);
lean_inc(x_81);
lean_inc(x_80);
lean_dec(x_69);
x_82 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_82, 0, x_80);
lean_ctor_set(x_82, 1, x_81);
return x_82;
}
}
}
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; 
x_83 = lean_ctor_get(x_61, 0);
lean_inc(x_83);
lean_dec(x_61);
x_84 = l_Lean_ConstantInfo_type(x_83);
lean_dec(x_83);
x_85 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2;
x_86 = l_Lean_Expr_isConstOf(x_84, x_85);
lean_dec(x_84);
if (x_86 == 0)
{
lean_object* x_87; 
lean_dec(x_60);
x_87 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
x_29 = x_87;
x_30 = x_13;
goto block_59;
}
else
{
lean_object* x_88; 
x_88 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_60, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_89 = lean_ctor_get(x_88, 0);
lean_inc(x_89);
x_90 = lean_ctor_get(x_89, 0);
lean_inc(x_90);
if (lean_is_exclusive(x_89)) {
 lean_ctor_release(x_89, 0);
 x_91 = x_89;
} else {
 lean_dec_ref(x_89);
 x_91 = lean_box(0);
}
x_92 = lean_ctor_get(x_88, 1);
lean_inc(x_92);
lean_dec(x_88);
x_93 = lean_ctor_get(x_90, 0);
lean_inc(x_93);
lean_dec(x_90);
x_94 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_94, 0, x_93);
if (lean_is_scalar(x_91)) {
 x_95 = lean_alloc_ctor(1, 1, 0);
} else {
 x_95 = x_91;
}
lean_ctor_set(x_95, 0, x_94);
x_29 = x_95;
x_30 = x_92;
goto block_59;
}
else
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 
lean_dec(x_28);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_2);
lean_dec(x_1);
x_96 = lean_ctor_get(x_88, 0);
lean_inc(x_96);
x_97 = lean_ctor_get(x_88, 1);
lean_inc(x_97);
if (lean_is_exclusive(x_88)) {
 lean_ctor_release(x_88, 0);
 lean_ctor_release(x_88, 1);
 x_98 = x_88;
} else {
 lean_dec_ref(x_88);
 x_98 = lean_box(0);
}
if (lean_is_scalar(x_98)) {
 x_99 = lean_alloc_ctor(1, 2, 0);
} else {
 x_99 = x_98;
}
lean_ctor_set(x_99, 0, x_96);
lean_ctor_set(x_99, 1, x_97);
return x_99;
}
}
}
}
block_27:
{
lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = 1;
x_24 = lean_usize_add(x_4, x_23);
x_25 = lean_array_uset(x_19, x_4, x_22);
x_4 = x_24;
x_5 = x_25;
x_13 = x_21;
goto _start;
}
block_59:
{
uint8_t x_31; 
x_31 = !lean_is_exclusive(x_29);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; 
x_32 = lean_ctor_get(x_29, 0);
x_33 = lean_ctor_get(x_17, 1);
lean_inc(x_33);
lean_dec(x_17);
x_34 = 0;
x_35 = l_Lean_Syntax_getRange_x3f(x_33, x_34);
lean_dec(x_33);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_36; lean_object* x_37; 
x_36 = lean_box(0);
x_37 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_37, 0, x_28);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_32);
lean_ctor_set(x_29, 0, x_37);
x_20 = x_29;
x_21 = x_30;
goto block_27;
}
else
{
uint8_t x_38; 
x_38 = !lean_is_exclusive(x_35);
if (x_38 == 0)
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_35, 0);
lean_inc(x_1);
x_40 = l_String_Range_toLspRange(x_1, x_39);
lean_dec(x_39);
lean_ctor_set(x_35, 0, x_40);
x_41 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_41, 0, x_28);
lean_ctor_set(x_41, 1, x_35);
lean_ctor_set(x_41, 2, x_32);
lean_ctor_set(x_29, 0, x_41);
x_20 = x_29;
x_21 = x_30;
goto block_27;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_42 = lean_ctor_get(x_35, 0);
lean_inc(x_42);
lean_dec(x_35);
lean_inc(x_1);
x_43 = l_String_Range_toLspRange(x_1, x_42);
lean_dec(x_42);
x_44 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_44, 0, x_43);
x_45 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_45, 0, x_28);
lean_ctor_set(x_45, 1, x_44);
lean_ctor_set(x_45, 2, x_32);
lean_ctor_set(x_29, 0, x_45);
x_20 = x_29;
x_21 = x_30;
goto block_27;
}
}
}
else
{
lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; 
x_46 = lean_ctor_get(x_29, 0);
lean_inc(x_46);
lean_dec(x_29);
x_47 = lean_ctor_get(x_17, 1);
lean_inc(x_47);
lean_dec(x_17);
x_48 = 0;
x_49 = l_Lean_Syntax_getRange_x3f(x_47, x_48);
lean_dec(x_47);
if (lean_obj_tag(x_49) == 0)
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_box(0);
x_51 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_51, 0, x_28);
lean_ctor_set(x_51, 1, x_50);
lean_ctor_set(x_51, 2, x_46);
x_52 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_52, 0, x_51);
x_20 = x_52;
x_21 = x_30;
goto block_27;
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_53 = lean_ctor_get(x_49, 0);
lean_inc(x_53);
if (lean_is_exclusive(x_49)) {
 lean_ctor_release(x_49, 0);
 x_54 = x_49;
} else {
 lean_dec_ref(x_49);
 x_54 = lean_box(0);
}
lean_inc(x_1);
x_55 = l_String_Range_toLspRange(x_1, x_53);
lean_dec(x_53);
if (lean_is_scalar(x_54)) {
 x_56 = lean_alloc_ctor(1, 1, 0);
} else {
 x_56 = x_54;
}
lean_ctor_set(x_56, 0, x_55);
x_57 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_57, 0, x_28);
lean_ctor_set(x_57, 1, x_56);
lean_ctor_set(x_57, 2, x_46);
x_58 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_58, 0, x_57);
x_20 = x_58;
x_21 = x_30;
goto block_27;
}
}
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_Widget_getWidgets___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = l_Lean_FileMap_lspPosToUtf8Pos(x_1, x_2);
x_5 = l_Lean_Server_Snapshots_Snapshot_endPos(x_3);
x_6 = lean_nat_dec_le(x_4, x_5);
lean_dec(x_5);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; uint8_t x_10; 
x_9 = lean_st_ref_get(x_7, x_8);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_9, 0);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec(x_11);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_9, 0, x_13);
return x_9;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_14 = lean_ctor_get(x_9, 0);
x_15 = lean_ctor_get(x_9, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_9);
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_15);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
x_13 = l_Lean_Widget_evalPanelWidgets(x_8, x_9, x_10, x_11, x_12);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_array_get_size(x_14);
x_17 = lean_usize_of_nat(x_16);
lean_dec(x_16);
x_18 = 0;
lean_inc(x_4);
x_19 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4(x_4, x_17, x_18, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; size_t x_29; lean_object* x_30; 
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
x_21 = lean_ctor_get(x_19, 1);
lean_inc(x_21);
lean_dec(x_19);
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = l_Lean_Server_Snapshots_Snapshot_infoTree(x_1);
lean_inc(x_2);
x_24 = l_Lean_Widget_widgetInfosAt_x3f(x_2, x_23, x_3);
x_25 = l_List_redLength___rarg(x_24);
x_26 = lean_mk_empty_array_with_capacity(x_25);
lean_dec(x_25);
x_27 = l_List_toArrayAux___rarg(x_24, x_26);
x_28 = lean_array_get_size(x_27);
x_29 = lean_usize_of_nat(x_28);
lean_dec(x_28);
x_30 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5(x_2, x_4, x_29, x_18, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
if (lean_obj_tag(x_30) == 0)
{
uint8_t x_31; 
x_31 = !lean_is_exclusive(x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; 
x_32 = lean_ctor_get(x_30, 0);
x_33 = !lean_is_exclusive(x_32);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_32, 0);
x_35 = l_Array_append___rarg(x_22, x_34);
lean_dec(x_34);
lean_ctor_set(x_32, 0, x_35);
return x_30;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = lean_ctor_get(x_32, 0);
lean_inc(x_36);
lean_dec(x_32);
x_37 = l_Array_append___rarg(x_22, x_36);
lean_dec(x_36);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_30, 0, x_38);
return x_30;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_39 = lean_ctor_get(x_30, 0);
x_40 = lean_ctor_get(x_30, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_30);
x_41 = lean_ctor_get(x_39, 0);
lean_inc(x_41);
if (lean_is_exclusive(x_39)) {
 lean_ctor_release(x_39, 0);
 x_42 = x_39;
} else {
 lean_dec_ref(x_39);
 x_42 = lean_box(0);
}
x_43 = l_Array_append___rarg(x_22, x_41);
lean_dec(x_41);
if (lean_is_scalar(x_42)) {
 x_44 = lean_alloc_ctor(1, 1, 0);
} else {
 x_44 = x_42;
}
lean_ctor_set(x_44, 0, x_43);
x_45 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_40);
return x_45;
}
}
else
{
uint8_t x_46; 
lean_dec(x_22);
x_46 = !lean_is_exclusive(x_30);
if (x_46 == 0)
{
return x_30;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_30, 0);
x_48 = lean_ctor_get(x_30, 1);
lean_inc(x_48);
lean_inc(x_47);
lean_dec(x_30);
x_49 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_49, 0, x_47);
lean_ctor_set(x_49, 1, x_48);
return x_49;
}
}
}
else
{
uint8_t x_50; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_50 = !lean_is_exclusive(x_19);
if (x_50 == 0)
{
return x_19;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_51 = lean_ctor_get(x_19, 0);
x_52 = lean_ctor_get(x_19, 1);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_19);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_51);
lean_ctor_set(x_53, 1, x_52);
return x_53;
}
}
}
else
{
uint8_t x_54; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_54 = !lean_is_exclusive(x_13);
if (x_54 == 0)
{
return x_13;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_13, 0);
x_56 = lean_ctor_get(x_13, 1);
lean_inc(x_56);
lean_inc(x_55);
lean_dec(x_13);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_55);
lean_ctor_set(x_57, 1, x_56);
return x_57;
}
}
}
}
static lean_object* _init_l_Lean_Widget_getWidgets___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__2___boxed), 8, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_3);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_3, 0);
x_8 = lean_ctor_get(x_3, 1);
lean_dec(x_8);
x_9 = l_List_getLast_x3f___rarg(x_7);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; 
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_10 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
lean_ctor_set(x_3, 1, x_5);
lean_ctor_set(x_3, 0, x_10);
return x_3;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_free_object(x_3);
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
lean_inc(x_11);
x_12 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__3___boxed), 12, 3);
lean_closure_set(x_12, 0, x_11);
lean_closure_set(x_12, 1, x_1);
lean_closure_set(x_12, 2, x_2);
x_13 = l_Lean_Widget_getWidgets___lambda__4___closed__1;
x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg), 10, 2);
lean_closure_set(x_14, 0, x_13);
lean_closure_set(x_14, 1, x_12);
x_15 = l_Lean_Server_RequestM_runTermElabM___rarg(x_11, x_14, x_4, x_5);
return x_15;
}
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 0);
lean_inc(x_16);
lean_dec(x_3);
x_17 = l_List_getLast_x3f___rarg(x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_18 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8;
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_5);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_20 = lean_ctor_get(x_17, 0);
lean_inc(x_20);
lean_dec(x_17);
lean_inc(x_20);
x_21 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__3___boxed), 12, 3);
lean_closure_set(x_21, 0, x_20);
lean_closure_set(x_21, 1, x_1);
lean_closure_set(x_21, 2, x_2);
x_22 = l_Lean_Widget_getWidgets___lambda__4___closed__1;
x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Widget_getWidgetSource___spec__1___rarg), 10, 2);
lean_closure_set(x_23, 0, x_22);
lean_closure_set(x_23, 1, x_21);
x_24 = l_Lean_Server_RequestM_runTermElabM___rarg(x_20, x_23, x_4, x_5);
return x_24;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Server_RequestM_readDoc___at_Lean_Server_RequestM_withWaitFindSnapAtPos___spec__1(x_2, x_3);
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_9, 2);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_unsigned_to_nat(1u);
x_13 = lean_nat_add(x_11, x_12);
x_14 = lean_unsigned_to_nat(0u);
lean_ctor_set(x_4, 1, x_14);
lean_ctor_set(x_4, 0, x_13);
lean_inc(x_10);
x_15 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__1___boxed), 3, 2);
lean_closure_set(x_15, 0, x_10);
lean_closure_set(x_15, 1, x_4);
x_16 = lean_ctor_get(x_8, 2);
lean_inc(x_16);
lean_dec(x_8);
x_17 = l_IO_AsyncList_waitUntil___rarg(x_15, x_16);
x_18 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__4), 5, 2);
lean_closure_set(x_18, 0, x_10);
lean_closure_set(x_18, 1, x_11);
x_19 = l_Lean_Server_RequestM_mapTask___rarg(x_17, x_18, x_2, x_7);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_20 = lean_ctor_get(x_4, 0);
x_21 = lean_ctor_get(x_4, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_4);
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_23, 2);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_ctor_get(x_1, 0);
lean_inc(x_25);
lean_dec(x_1);
x_26 = lean_unsigned_to_nat(1u);
x_27 = lean_nat_add(x_25, x_26);
x_28 = lean_unsigned_to_nat(0u);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
lean_inc(x_24);
x_30 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__1___boxed), 3, 2);
lean_closure_set(x_30, 0, x_24);
lean_closure_set(x_30, 1, x_29);
x_31 = lean_ctor_get(x_22, 2);
lean_inc(x_31);
lean_dec(x_22);
x_32 = l_IO_AsyncList_waitUntil___rarg(x_30, x_31);
x_33 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets___lambda__4), 5, 2);
lean_closure_set(x_33, 0, x_24);
lean_closure_set(x_33, 1, x_25);
x_34 = l_Lean_Server_RequestM_mapTask___rarg(x_32, x_33, x_2, x_21);
return x_34;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_throwError___at_Lean_Widget_getWidgets___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_ofExcept___at_Lean_Widget_getWidgets___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
size_t x_13; size_t x_14; lean_object* x_15; 
x_13 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_14 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_15 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
size_t x_14; size_t x_15; lean_object* x_16; 
x_14 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_15 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_16 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Lean_Widget_getWidgets___lambda__1(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Widget_getWidgets___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_getWidgets___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Widget_getWidgets___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_13;
}
}
static lean_object* _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Lsp_instFromJsonPosition;
x_2 = l_Lean_Lsp_instToJsonPosition;
x_3 = l_Lean_Server_instRpcEncodableOfFromJsonOfToJson___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1;
x_4 = l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse;
x_5 = lean_alloc_closure((void*)(l_Lean_Server_wrapRpcProcedure___elambda__1___boxed), 10, 6);
lean_closure_set(x_5, 0, x_1);
lean_closure_set(x_5, 1, lean_box(0));
lean_closure_set(x_5, 2, lean_box(0));
lean_closure_set(x_5, 3, x_3);
lean_closure_set(x_5, 4, x_4);
lean_closure_set(x_5, 5, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
lean_inc(x_1);
x_5 = l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2(x_1, x_2);
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1;
x_7 = lean_st_ref_take(x_6, x_4);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = l_Lean_PersistentHashMap_insert___at_Lean_Server_registerBuiltinRpcProcedure___spec__1(x_8, x_1, x_5);
x_11 = lean_st_ref_set(x_6, x_10, x_9);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
return x_11;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_11, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_11);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1;
x_7 = lean_st_ref_get(x_6, x_5);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = l_Lean_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(x_9, x_1);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_free_object(x_7);
x_12 = lean_box(0);
x_13 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1(x_1, x_2, x_12, x_10);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_2);
lean_dec(x_1);
x_14 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_15 = lean_string_append(x_14, x_3);
x_16 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1;
x_17 = lean_string_append(x_15, x_16);
x_18 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set_tag(x_7, 1);
lean_ctor_set(x_7, 0, x_18);
return x_7;
}
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_ctor_get(x_7, 0);
x_20 = lean_ctor_get(x_7, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_7);
x_21 = l_Lean_PersistentHashMap_contains___at_Lean_Server_registerBuiltinRpcProcedure___spec__5(x_19, x_1);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_box(0);
x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1(x_1, x_2, x_22, x_20);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_2);
lean_dec(x_1);
x_24 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_25 = lean_string_append(x_24, x_3);
x_26 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1;
x_27 = lean_string_append(x_25, x_26);
x_28 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_28, 0, x_27);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_20);
return x_29;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_4 = 1;
lean_inc(x_1);
x_5 = l_Lean_Name_toString(x_1, x_4);
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
x_8 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2;
x_9 = lean_string_append(x_7, x_8);
x_10 = l_Lean_initializing(x_3);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_2);
lean_dec(x_1);
x_13 = !lean_is_exclusive(x_10);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_14 = lean_ctor_get(x_10, 0);
lean_dec(x_14);
x_15 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_16 = lean_string_append(x_15, x_9);
lean_dec(x_9);
x_17 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3;
x_18 = lean_string_append(x_16, x_17);
x_19 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_19);
return x_10;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_20 = lean_ctor_get(x_10, 1);
lean_inc(x_20);
lean_dec(x_10);
x_21 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12;
x_22 = lean_string_append(x_21, x_9);
lean_dec(x_9);
x_23 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3;
x_24 = lean_string_append(x_22, x_23);
x_25 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_20);
return x_26;
}
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_10, 1);
lean_inc(x_27);
lean_dec(x_10);
x_28 = lean_box(0);
x_29 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2(x_1, x_2, x_9, x_28, x_27);
lean_dec(x_9);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("getWidgets", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1;
x_2 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Widget_getWidgets), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2;
x_3 = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3;
x_4 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_6;
}
}
lean_object* initialize_Lean_Elab_Eval(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Server_Rpc_RequestHandling(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Widget_UserWidget(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Elab_Eval(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Server_Rpc_RequestHandling(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalModuleUnsafe___closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalWidgetInstanceUnsafe___closed__2);
l_Lean_Widget_instToModuleModule___closed__1 = _init_l_Lean_Widget_instToModuleModule___closed__1();
lean_mark_persistent(l_Lean_Widget_instToModuleModule___closed__1);
l_Lean_Widget_instToModuleModule = _init_l_Lean_Widget_instToModuleModule();
lean_mark_persistent(l_Lean_Widget_instToModuleModule);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_90_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l___private_Lean_Widget_UserWidget_0__Lean_Widget_builtinModulesRef = lean_io_result_get_value(res);
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_builtinModulesRef);
lean_dec_ref(res);
}l_Lean_Widget_addBuiltinModule___closed__1 = _init_l_Lean_Widget_addBuiltinModule___closed__1();
lean_mark_persistent(l_Lean_Widget_addBuiltinModule___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__4);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__5);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185____closed__6);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_185_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Widget_moduleRegistry = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Widget_moduleRegistry);
lean_dec_ref(res);
}l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1 = _init_l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1();
lean_mark_persistent(l_Lean_logWarning___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____spec__2___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__1___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__4);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__2___closed__5);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__3___closed__4);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__4);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__5);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__6);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__7);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__8);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__9);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__10);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__11);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__12);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__13);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__14);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__15);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__16);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__17);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__4___closed__18);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__5___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____lambda__8___closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__4);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__5);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__6);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__7);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__8);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__9);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__10);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__11);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__12);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__13);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245____closed__14);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_245_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Widget_widgetModuleAttrImpl = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Widget_widgetModuleAttrImpl);
lean_dec_ref(res);
}l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_825____closed__2);
l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1 = _init_l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1();
lean_mark_persistent(l_Lean_Widget_instToJsonGetWidgetSourceParams___closed__1);
l_Lean_Widget_instToJsonGetWidgetSourceParams = _init_l_Lean_Widget_instToJsonGetWidgetSourceParams();
lean_mark_persistent(l_Lean_Widget_instToJsonGetWidgetSourceParams);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__8);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__9);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__10);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__11);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__12);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonGetWidgetSourceParams____x40_Lean_Widget_UserWidget___hyg_873____closed__13);
l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1 = _init_l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1();
lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetSourceParams___closed__1);
l_Lean_Widget_instFromJsonGetWidgetSourceParams = _init_l_Lean_Widget_instFromJsonGetWidgetSourceParams();
lean_mark_persistent(l_Lean_Widget_instFromJsonGetWidgetSourceParams);
l_Lean_Widget_instInhabitedWidgetSource = _init_l_Lean_Widget_instInhabitedWidgetSource();
lean_mark_persistent(l_Lean_Widget_instInhabitedWidgetSource);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_997____closed__1);
l_Lean_Widget_instToJsonWidgetSource___closed__1 = _init_l_Lean_Widget_instToJsonWidgetSource___closed__1();
lean_mark_persistent(l_Lean_Widget_instToJsonWidgetSource___closed__1);
l_Lean_Widget_instToJsonWidgetSource = _init_l_Lean_Widget_instToJsonWidgetSource();
lean_mark_persistent(l_Lean_Widget_instToJsonWidgetSource);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonWidgetSource____x40_Lean_Widget_UserWidget___hyg_1031____closed__8);
l_Lean_Widget_instFromJsonWidgetSource___closed__1 = _init_l_Lean_Widget_instFromJsonWidgetSource___closed__1();
lean_mark_persistent(l_Lean_Widget_instFromJsonWidgetSource___closed__1);
l_Lean_Widget_instFromJsonWidgetSource = _init_l_Lean_Widget_instFromJsonWidgetSource();
lean_mark_persistent(l_Lean_Widget_instFromJsonWidgetSource);
l_Lean_Widget_getWidgetSource___lambda__5___closed__1 = _init_l_Lean_Widget_getWidgetSource___lambda__5___closed__1();
lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__5___closed__1);
l_Lean_Widget_getWidgetSource___lambda__6___closed__1 = _init_l_Lean_Widget_getWidgetSource___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__6___closed__1);
l_Lean_Widget_getWidgetSource___lambda__6___closed__2 = _init_l_Lean_Widget_getWidgetSource___lambda__6___closed__2();
lean_mark_persistent(l_Lean_Widget_getWidgetSource___lambda__6___closed__2);
l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1();
lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__1);
l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2();
lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__2___closed__2);
l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1 = _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__1___closed__1);
l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___lambda__2___closed__1);
l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1 = _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1();
lean_mark_persistent(l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__1);
l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2 = _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2();
lean_mark_persistent(l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__2);
l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3 = _init_l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3();
lean_mark_persistent(l_Lean_Server_registerBuiltinRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____spec__1___closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357____closed__3);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1357_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__3);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416____closed__4);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_1416_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Widget_panelWidgetsExt = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Widget_panelWidgetsExt);
lean_dec_ref(res);
}l_Lean_Widget_evalPanelWidgets___closed__1 = _init_l_Lean_Widget_evalPanelWidgets___closed__1();
lean_mark_persistent(l_Lean_Widget_evalPanelWidgets___closed__1);
l_Lean_Widget_widgetInstanceSpec___closed__1 = _init_l_Lean_Widget_widgetInstanceSpec___closed__1();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__1);
l_Lean_Widget_widgetInstanceSpec___closed__2 = _init_l_Lean_Widget_widgetInstanceSpec___closed__2();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__2);
l_Lean_Widget_widgetInstanceSpec___closed__3 = _init_l_Lean_Widget_widgetInstanceSpec___closed__3();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__3);
l_Lean_Widget_widgetInstanceSpec___closed__4 = _init_l_Lean_Widget_widgetInstanceSpec___closed__4();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__4);
l_Lean_Widget_widgetInstanceSpec___closed__5 = _init_l_Lean_Widget_widgetInstanceSpec___closed__5();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__5);
l_Lean_Widget_widgetInstanceSpec___closed__6 = _init_l_Lean_Widget_widgetInstanceSpec___closed__6();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__6);
l_Lean_Widget_widgetInstanceSpec___closed__7 = _init_l_Lean_Widget_widgetInstanceSpec___closed__7();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__7);
l_Lean_Widget_widgetInstanceSpec___closed__8 = _init_l_Lean_Widget_widgetInstanceSpec___closed__8();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__8);
l_Lean_Widget_widgetInstanceSpec___closed__9 = _init_l_Lean_Widget_widgetInstanceSpec___closed__9();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__9);
l_Lean_Widget_widgetInstanceSpec___closed__10 = _init_l_Lean_Widget_widgetInstanceSpec___closed__10();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__10);
l_Lean_Widget_widgetInstanceSpec___closed__11 = _init_l_Lean_Widget_widgetInstanceSpec___closed__11();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__11);
l_Lean_Widget_widgetInstanceSpec___closed__12 = _init_l_Lean_Widget_widgetInstanceSpec___closed__12();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__12);
l_Lean_Widget_widgetInstanceSpec___closed__13 = _init_l_Lean_Widget_widgetInstanceSpec___closed__13();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__13);
l_Lean_Widget_widgetInstanceSpec___closed__14 = _init_l_Lean_Widget_widgetInstanceSpec___closed__14();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__14);
l_Lean_Widget_widgetInstanceSpec___closed__15 = _init_l_Lean_Widget_widgetInstanceSpec___closed__15();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__15);
l_Lean_Widget_widgetInstanceSpec___closed__16 = _init_l_Lean_Widget_widgetInstanceSpec___closed__16();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__16);
l_Lean_Widget_widgetInstanceSpec___closed__17 = _init_l_Lean_Widget_widgetInstanceSpec___closed__17();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__17);
l_Lean_Widget_widgetInstanceSpec___closed__18 = _init_l_Lean_Widget_widgetInstanceSpec___closed__18();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec___closed__18);
l_Lean_Widget_widgetInstanceSpec = _init_l_Lean_Widget_widgetInstanceSpec();
lean_mark_persistent(l_Lean_Widget_widgetInstanceSpec);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__1);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__2);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__3);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__4);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__5);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__6);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__7);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__8);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__9);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__10);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__11);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__12);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__13);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__14);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__15);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__16);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__17);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__18);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__19);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__20);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__21);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__22);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__23);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__24);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__25);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__26);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__27);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__28);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__29);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__30);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__31);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__32);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__33);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__34);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__35);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__36);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__37);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__38);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__39);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__40);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__41);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__42);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__43);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__44);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__45);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__46);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__47);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__48);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__49);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__50);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__51);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__52);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__53);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__54);
l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55 = _init_l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpecAux___closed__55);
l_Lean_Widget_elabWidgetInstanceSpec___closed__1 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__1();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__1);
l_Lean_Widget_elabWidgetInstanceSpec___closed__2 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__2();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__2);
l_Lean_Widget_elabWidgetInstanceSpec___closed__3 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__3();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__3);
l_Lean_Widget_elabWidgetInstanceSpec___closed__4 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__4();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__4);
l_Lean_Widget_elabWidgetInstanceSpec___closed__5 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__5();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__5);
l_Lean_Widget_elabWidgetInstanceSpec___closed__6 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__6();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__6);
l_Lean_Widget_elabWidgetInstanceSpec___closed__7 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__7();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__7);
l_Lean_Widget_elabWidgetInstanceSpec___closed__8 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__8();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__8);
l_Lean_Widget_elabWidgetInstanceSpec___closed__9 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__9();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__9);
l_Lean_Widget_elabWidgetInstanceSpec___closed__10 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__10();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__10);
l_Lean_Widget_elabWidgetInstanceSpec___closed__11 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__11();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__11);
l_Lean_Widget_elabWidgetInstanceSpec___closed__12 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__12();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__12);
l_Lean_Widget_elabWidgetInstanceSpec___closed__13 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__13();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__13);
l_Lean_Widget_elabWidgetInstanceSpec___closed__14 = _init_l_Lean_Widget_elabWidgetInstanceSpec___closed__14();
lean_mark_persistent(l_Lean_Widget_elabWidgetInstanceSpec___closed__14);
l_Lean_Widget_addWidgetSpec___closed__1 = _init_l_Lean_Widget_addWidgetSpec___closed__1();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__1);
l_Lean_Widget_addWidgetSpec___closed__2 = _init_l_Lean_Widget_addWidgetSpec___closed__2();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__2);
l_Lean_Widget_addWidgetSpec___closed__3 = _init_l_Lean_Widget_addWidgetSpec___closed__3();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__3);
l_Lean_Widget_addWidgetSpec___closed__4 = _init_l_Lean_Widget_addWidgetSpec___closed__4();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__4);
l_Lean_Widget_addWidgetSpec___closed__5 = _init_l_Lean_Widget_addWidgetSpec___closed__5();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__5);
l_Lean_Widget_addWidgetSpec___closed__6 = _init_l_Lean_Widget_addWidgetSpec___closed__6();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__6);
l_Lean_Widget_addWidgetSpec___closed__7 = _init_l_Lean_Widget_addWidgetSpec___closed__7();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec___closed__7);
l_Lean_Widget_addWidgetSpec = _init_l_Lean_Widget_addWidgetSpec();
lean_mark_persistent(l_Lean_Widget_addWidgetSpec);
l_Lean_Widget_eraseWidgetSpec___closed__1 = _init_l_Lean_Widget_eraseWidgetSpec___closed__1();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__1);
l_Lean_Widget_eraseWidgetSpec___closed__2 = _init_l_Lean_Widget_eraseWidgetSpec___closed__2();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__2);
l_Lean_Widget_eraseWidgetSpec___closed__3 = _init_l_Lean_Widget_eraseWidgetSpec___closed__3();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__3);
l_Lean_Widget_eraseWidgetSpec___closed__4 = _init_l_Lean_Widget_eraseWidgetSpec___closed__4();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__4);
l_Lean_Widget_eraseWidgetSpec___closed__5 = _init_l_Lean_Widget_eraseWidgetSpec___closed__5();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__5);
l_Lean_Widget_eraseWidgetSpec___closed__6 = _init_l_Lean_Widget_eraseWidgetSpec___closed__6();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec___closed__6);
l_Lean_Widget_eraseWidgetSpec = _init_l_Lean_Widget_eraseWidgetSpec();
lean_mark_persistent(l_Lean_Widget_eraseWidgetSpec);
l_Lean_Widget_showWidgetSpec___closed__1 = _init_l_Lean_Widget_showWidgetSpec___closed__1();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__1);
l_Lean_Widget_showWidgetSpec___closed__2 = _init_l_Lean_Widget_showWidgetSpec___closed__2();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__2);
l_Lean_Widget_showWidgetSpec___closed__3 = _init_l_Lean_Widget_showWidgetSpec___closed__3();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__3);
l_Lean_Widget_showWidgetSpec___closed__4 = _init_l_Lean_Widget_showWidgetSpec___closed__4();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__4);
l_Lean_Widget_showWidgetSpec___closed__5 = _init_l_Lean_Widget_showWidgetSpec___closed__5();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__5);
l_Lean_Widget_showWidgetSpec___closed__6 = _init_l_Lean_Widget_showWidgetSpec___closed__6();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec___closed__6);
l_Lean_Widget_showWidgetSpec = _init_l_Lean_Widget_showWidgetSpec();
lean_mark_persistent(l_Lean_Widget_showWidgetSpec);
l_Lean_Widget_showPanelWidgetsCmd___closed__1 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__1();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__1);
l_Lean_Widget_showPanelWidgetsCmd___closed__2 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__2();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__2);
l_Lean_Widget_showPanelWidgetsCmd___closed__3 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__3();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__3);
l_Lean_Widget_showPanelWidgetsCmd___closed__4 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__4();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__4);
l_Lean_Widget_showPanelWidgetsCmd___closed__5 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__5();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__5);
l_Lean_Widget_showPanelWidgetsCmd___closed__6 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__6();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__6);
l_Lean_Widget_showPanelWidgetsCmd___closed__7 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__7();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__7);
l_Lean_Widget_showPanelWidgetsCmd___closed__8 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__8();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__8);
l_Lean_Widget_showPanelWidgetsCmd___closed__9 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__9();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__9);
l_Lean_Widget_showPanelWidgetsCmd___closed__10 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__10();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__10);
l_Lean_Widget_showPanelWidgetsCmd___closed__11 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__11();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__11);
l_Lean_Widget_showPanelWidgetsCmd___closed__12 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__12();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__12);
l_Lean_Widget_showPanelWidgetsCmd___closed__13 = _init_l_Lean_Widget_showPanelWidgetsCmd___closed__13();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd___closed__13);
l_Lean_Widget_showPanelWidgetsCmd = _init_l_Lean_Widget_showPanelWidgetsCmd();
lean_mark_persistent(l_Lean_Widget_showPanelWidgetsCmd);
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__1);
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__1___rarg___closed__2);
l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__1);
l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__6___closed__2);
l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1();
lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__9___closed__1);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___lambda__1___closed__1);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__1);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__2);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__3);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__4);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__5);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__6);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__7);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__8);
l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_elabShowPanelWidgetsCmd___spec__13___closed__9);
l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1 = _init_l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1();
lean_mark_persistent(l_Lean_Widget_elabShowPanelWidgetsCmd___boxed__const__1);
l_Lean_Widget_widgetCmd___closed__1 = _init_l_Lean_Widget_widgetCmd___closed__1();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__1);
l_Lean_Widget_widgetCmd___closed__2 = _init_l_Lean_Widget_widgetCmd___closed__2();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__2);
l_Lean_Widget_widgetCmd___closed__3 = _init_l_Lean_Widget_widgetCmd___closed__3();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__3);
l_Lean_Widget_widgetCmd___closed__4 = _init_l_Lean_Widget_widgetCmd___closed__4();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__4);
l_Lean_Widget_widgetCmd___closed__5 = _init_l_Lean_Widget_widgetCmd___closed__5();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__5);
l_Lean_Widget_widgetCmd___closed__6 = _init_l_Lean_Widget_widgetCmd___closed__6();
lean_mark_persistent(l_Lean_Widget_widgetCmd___closed__6);
l_Lean_Widget_widgetCmd = _init_l_Lean_Widget_widgetCmd();
lean_mark_persistent(l_Lean_Widget_widgetCmd);
l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1 = _init_l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1();
lean_mark_persistent(l_Lean_Widget_instInhabitedUserWidgetDefinition___closed__1);
l_Lean_Widget_instInhabitedUserWidgetDefinition = _init_l_Lean_Widget_instInhabitedUserWidgetDefinition();
lean_mark_persistent(l_Lean_Widget_instInhabitedUserWidgetDefinition);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_toJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3628____closed__2);
l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1 = _init_l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1();
lean_mark_persistent(l_Lean_Widget_instToJsonUserWidgetDefinition___closed__1);
l_Lean_Widget_instToJsonUserWidgetDefinition = _init_l_Lean_Widget_instToJsonUserWidgetDefinition();
lean_mark_persistent(l_Lean_Widget_instToJsonUserWidgetDefinition);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__8);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__9);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__10);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__11);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3676____closed__12);
l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1 = _init_l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1();
lean_mark_persistent(l_Lean_Widget_instFromJsonUserWidgetDefinition___closed__1);
l_Lean_Widget_instFromJsonUserWidgetDefinition = _init_l_Lean_Widget_instFromJsonUserWidgetDefinition();
lean_mark_persistent(l_Lean_Widget_instFromJsonUserWidgetDefinition);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__8);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__9);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__10);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__11);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__12);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__13);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__14);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__15);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__16);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__17);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl___closed__18);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_widgetAttrImpl);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_3830_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Widget_PanelWidgetInstance_range_x3f___default = _init_l_Lean_Widget_PanelWidgetInstance_range_x3f___default();
lean_mark_persistent(l_Lean_Widget_PanelWidgetInstance_range_x3f___default);
l_Lean_Widget_PanelWidgetInstance_name_x3f___default = _init_l_Lean_Widget_PanelWidgetInstance_name_x3f___default();
lean_mark_persistent(l_Lean_Widget_PanelWidgetInstance_name_x3f___default);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__8);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__9);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__10);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__11);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__12);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__13);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__14);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__15);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__16);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__17);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__18);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__19);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__20);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__21 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__21();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__21);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__22);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__23);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__24 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__24();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__24);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__25);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__26);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__27 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__27();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__27);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__28);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__29);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__30);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__31);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__32);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__33 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__33();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__33);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__34);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__35);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__36);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__37);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__38 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__38();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_PanelWidgetInstance_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4232____closed__38);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket___closed__1);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instFromJsonRpcEncodablePacket);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket___closed__1);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instToJsonRpcEncodablePacket);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__1);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__2);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__3);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__4);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__5);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance_dec____x40_Lean_Widget_UserWidget___hyg_4152____closed__6);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__1);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__2);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3 = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance___closed__3);
l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance = _init_l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_PanelWidgetInstance_instRpcEncodablePanelWidgetInstance);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__1);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__2);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__3);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__4);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__5);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__6);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__7);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__8);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__9);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__10);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__11);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__12);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__13);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__14);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__15);
l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__16 = _init_l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__16();
lean_mark_persistent(l___private_Lean_Widget_UserWidget_0__Lean_Widget_Lean_Widget_GetWidgetsResponse_fromJsonRpcEncodablePacket____x40_Lean_Widget_UserWidget___hyg_4927____closed__16);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket___closed__1);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instFromJsonRpcEncodablePacket);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket___closed__1);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instToJsonRpcEncodablePacket);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse_dec____x40_Lean_Widget_UserWidget___hyg_4900____closed__1);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__1);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__2);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3 = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse___closed__3);
l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse = _init_l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse();
lean_mark_persistent(l_Lean_Widget_Lean_Widget_GetWidgetsResponse_instRpcEncodableGetWidgetsResponse);
l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1();
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1);
l_Lean_Widget_getWidgets___lambda__4___closed__1 = _init_l_Lean_Widget_getWidgets___lambda__4___closed__1();
lean_mark_persistent(l_Lean_Widget_getWidgets___lambda__4___closed__1);
l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1 = _init_l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1();
lean_mark_persistent(l_Lean_Server_wrapRpcProcedure___at_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____spec__2___closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__1);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__2);
l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3 = _init_l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3();
lean_mark_persistent(l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525____closed__3);
if (builtin) {res = l_Lean_Widget_initFn____x40_Lean_Widget_UserWidget___hyg_5525_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
